It's not the LD_LIBRARY_PATH, the problem is happening because playerc++.h isn't found.  You're using the wrong pkg-config configuration.  playercore is used for compiling plugin drivers and the like, if you're writing a client program you should use `pkg-config --cflags playerc++`.  For future reference, please see http://playerstage.sourceforge.net/doc/Player-cvs/player/group__cplusplus__example.html.  And if you are working with Player 3.0 and decide to switch to CMake, see http://playerstage.sourceforge.net/wiki/Compiling_Player_3_clients_and_plugins.

Rich

On 6/26/2010 10:29 PM, Aslund wrote:
Hey

Sounds like as a strange error, but a good try could be to define the library path by:
export LD_LIBRARY_PATH=/my/library/path

Alternative you can look at this picture how I compile my programs:
http://www.myupload.dk/handleupload/5300c728b27ac208788d9a83912185ef1277606012

Regards

Sebastian Aslund


2010/6/27 <xlhe@mail.ccnu.edu.cn>

I have a problem with gcc - compiling program written in c/c++ for Player.
when  I try to compile file *.cc , there is such  text:

g++ 'pkg-config --cflags playercore' -o playerclient  playerclient.cc 'pkg-config --libs playercore'
g++: pkg-config --cflags playercore: No such file or directory
g++: pkg-config --libs playercore: No such file or directory
playerclient.cc:4:36: error: libplayerc++/playerc++.h: No such file or directory
playerclient.cc:13: error: PlayerCc is not a namespace-name
playerclient.cc:13: error: expected namespace-name before ; token
....

But I checked libs using 'pkg-config --libs playercore' and system shows :
-L/usr/local/lib -lplayercore -lpthread -lltdl -ldl -lplayerinterface -lplayercommon 

would you please tell me why? Thanks a lot!

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Playerstage-users mailing list
Playerstage-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-users


------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________ Playerstage-users mailing list Playerstage-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/playerstage-users