From: Toby C. <tco...@pl...> - 2006-02-08 17:53:04
|
Hi, just typing 'make' in the examples dir will build all of the examples for you, to build clients outside the player tree you will have to link to the player client libraries, specifically adding -lplayerclient to your g++ command for the c++ client library. So for your case, change to the c++ examples dir and type 'make' again and see if that fixes the problem. Toby ma...@fr... wrote: > Hi, > I'm very new in Player/Stage (and programming too...). I have installed Player > 1.6.5 and Stage 1.6.2 under Fedora Core 2, and I have some problems with the > last point of testing (in the "p/s getting started" file) : for example, how > should I compile laserobstacleavoid.cc contained in the examples/c++ directory > to run the controller? > That's what I tried to do : > > $ make player-1.6.5/examples/c++/laserobstacleavoid > > g++ player-1.6.5/examples/c++/laserobstacleavoid.cc -o > player-1.6.5/examples/c++/laserobstacleavoid > /tmp/ccQ7q41D.o(.text+0x1f4): dans la fonction « main fonction « main »: > : undefined reference to `PlayerClient::PlayerClient[in-charge](char const*, > int, int)' > /tmp/ccQ7q41D.o(.text+0x287): dans la fonction « main »: > : undefined reference to `PlayerClient::Read(bool, ClientProxy**)' > /tmp/ccQ7q41D.o(.text+0x5dc): dans la fonction « main »: > : undefined reference to `PlayerClient::~PlayerClient [in-charge]()' > (...) > collect2: ld a retourné 1 code d'état d'exécution > make: *** [player-1.6.5/examples/c++/laserobstacleavoid] Erreur 1 > > Please help me to understand my mistakes (and forgive my ignorance) > Thanks > > Macha > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642 > _______________________________________________ > Playerstage-users mailing list > Pla...@li... > https://lists.sourceforge.net/lists/listinfo/playerstage-users > |