discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] can't compile C++ example


From: Gong Zhang
Subject: [Discuss-gnuradio] can't compile C++ example
Date: Tue, 14 May 2013 21:08:34 +0800
User-agent: Thunderbird 2.0.0.24 (X11/20101027)

Hi,
I wanna execute the dial_tone.cc example.So I execute "g++ dial_tone.cc -I /usr/local/include/gnuradio/"
   But I got the errors:
laptop:~/Desktop/ccompile$ g++ dial_tone.cc -I /usr/local/include/gnuradio/
/tmp/ccxAFik0.o: In function `main':
dial_tone.cc:(.text+0x59): undefined reference to `gr_make_top_block(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' dial_tone.cc:(.text+0xc2): undefined reference to `gr_make_sig_source_f(double, gr_waveform_t, double, double, float)' dial_tone.cc:(.text+0xfb): undefined reference to `gr_make_sig_source_f(double, gr_waveform_t, double, double, float)' dial_tone.cc:(.text+0x176): undefined reference to `audio_make_sink(int, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool)' dial_tone.cc:(.text+0x238): undefined reference to `gr_hier_block2::connect(boost::shared_ptr<gr_basic_block>, int, boost::shared_ptr<gr_basic_block>, int)' dial_tone.cc:(.text+0x2de): undefined reference to `gr_hier_block2::connect(boost::shared_ptr<gr_basic_block>, int, boost::shared_ptr<gr_basic_block>, int)'
dial_tone.cc:(.text+0x33d): undefined reference to `gr_top_block::run(int)'
collect2: ld returned 1 exit status




reply via email to

[Prev in Thread] Current Thread [Next in Thread]