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:


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