On Wed, 2009-02-04 at 08:59 -0500, Jonathan Peck wrote: > g++ Output: > jp...@lt14:~/usrp2-demo/usrp2-getdata$ g++ usrp2_demo.cc -o usrp2demo -lusrp2 > /usr/local/lib/libusrp2.so: undefined reference to > `gruel::sys_pri::usrp2_backend()' > /usr/local/lib/libusrp2.so: undefined reference to > `gruel::enable_realtime_scheduling(gruel::rt_sched_param)' > collect2: ld returned 1 exit status
You need to also link in the libgruel and omnithreads library. An easy way to do this is to use the pkg-config command. To compile and link in one step your single .cc file: g++ -o usrp_demo `pkg-config --cflags --libs usrp2` usrp_demo.cc The pkg-config utility will use our supplied configuration files and create the proper compiler and linker flags for you. Johnathan _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio