On Thu, Aug 7, 2008 at 3:19 AM, RAVI GUPTA <[EMAIL PROTECTED]> wrote: > Hello, I am trying to run the sample program for "Loading and playing a > simple network" given on CLAM site > > http://iua-share.upf.es/wikis/clam/index.php/Loading_and_playing_a_simple_network > > but while compiling i got some error > > $ g++ network.cxx > /tmp/cc38E0O8.o: In function `main': > network.cxx:(.text+0x150): undefined reference to `CLAM::Network::Network()' > network.cxx:(.text+0x18e): undefined reference to > `CLAM::XmlStorage::Restore(CLAM::Component&, std::basic_string<char, > std::char_traits<char>, std::allocator<char> > const&)' > network.cxx:(.text+0x2b5): undefined reference to > `CLAM::PANetworkPlayer::PANetworkPlayer()' > network.cxx:(.text+0x2c7): undefined reference to > `CLAM::Network::SetPlayer(CLAM::NetworkPlayer*)' > network.cxx:(.text+0x2ea): undefined reference to `CLAM::Network::Start()' > network.cxx:(.text+0x301): undefined reference to `CLAM::Network::Stop()' > network.cxx:(.text+0x31b): undefined reference to > `CLAM::Network::~Network()' > network.cxx:(.text+0x334): undefined reference to > `CLAM::Network::~Network()' > /tmp/cc38E0O8.o:(.gcc_except_table+0x58): undefined reference to `typeinfo > for CLAM::XmlStorageErr' > collect2: ld returned 1 exit status > > Can someone help me to fix these problems (I am new to CLAM)?
Hi! You should use the scons scripts from here: http://iua-share.upf.es/wikis/clam/index.php/Minimal_SConstruct_to_build_with_CLAM_and_Qt4 Just copy that text into a SConstruct file in the same path of your network.cxx file and type 'scons' or if you still want to compile "by hand": g++ network.cxx -lclam_core -lclam_audioio -lclam_processing -L$CLAM_LIBRARY_INSTALLATION_PATH/lib -I$CLAM_LIBRARY_INSTALLATION_PATH/include -o network Cheers. > Thanx in advance. > > > > ________________________________ > Connect with friends all over the world. Get Yahoo! India Messenger. > _______________________________________________ > CLAM mailing list > [email protected] > http://clam.iua.upf.edu > -- Hernán http://h.ordia.com.ar GnuPG: 0xEE8A3FE9 _______________________________________________ CLAM mailing list [email protected] http://clam.iua.upf.edu
