Hi<br><br>I'm new to Linux programming and I'm trying to compile a very simple demo program using RTSP capabilities provided by liveMedia; first step I've made is to set up a project in my IDE, Kdevelop, running on a Debian Linux; I've created my project using the template provided by Kdevelop ("Simple Hello World program"), added reference to liveMedialid and necessary include, executed "Automake & friends" and builded successfully; then I've tried to use a basic class from the library (copy&paste from "
playCommon.cpp").... my simple source file looks like the following:<br><br>#ifdef HAVE_CONFIG_H<br>#include <config.h><br>#endif<br><br>#include <iostream><br>#include <cstdlib><br><br>#include "
BasicUsageEnvironment.hh"<br><br>using namespace std;<br><br>UsageEnvironment* env;<br><br>int main(int argc, char *argv[])<br>{<br> cout << "Begin program ...." << endl;<br><br> // Begin by setting up our usage environment:
<br> TaskScheduler* scheduler = BasicTaskScheduler::createNew();<br> env = BasicUsageEnvironment::createNew(*scheduler);<br><br> return EXIT_SUCCESS;<br>}<br><br><br>the problem is that when I try to build the project I get the following error:
<br><br>linking provalive2 (libtool)<br>linking provalive2 (g++)<br>provalive2.o: In function `__static_initialization_and_destruction_0':<br>/usr/include/BasicUsageEnvironment/DelayQueue.hh:114: undefined reference to `DELAY_SECOND'
<br>/usr/include/BasicUsageEnvironment/DelayQueue.hh:114: undefined reference to `operator*(short, DelayInterval const&)'<br>/usr/include/BasicUsageEnvironment/DelayQueue.hh:115: undefined reference to `operator*(short, DelayInterval const&)'
<br>/usr/include/BasicUsageEnvironment/DelayQueue.hh:116: undefined reference to `operator*(short, DelayInterval const&)'<br>provalive2.o: In function `main':<br>/home/veris/Projects/provalive2/src/provalive2.cpp:40: undefined reference to `BasicTaskScheduler::createNew()'
<br>/home/veris/Projects/provalive2/src/provalive2.cpp:41: undefined reference to `BasicUsageEnvironment::createNew(TaskScheduler&)'<br>collect2: ld returned 1 exit status<br>make[2]: *** [provalive2] Error 1<br>make[1]: *** [all-recursive] Error 1
<br>make: *** [all] Error 2<br>*** Exited with status: 2 ***<br><br><br>where I'm wrong?<br><br>Thanks<br>