Undefined reference error

Hi there,

I’m run into a linker error when I build my OOT module; Hereafter what I
get
when typing sudo make:
*
libgnuradio-ssg.so: undefined reference to «
gr::filter::firdes::window(gr::filter::firdes::win_type, int, double) »*
For information, I use gnuradio 3.7.3 on fedora 20 and the version 4.8.2
of
gcc.

I know it could be handled by modifying cmake files, but I don’t know
which
one and how !
Could you please help me fix this.

Greetings,
Mohamed


View this message in context:
http://gnuradio.4.n7.nabble.com/Undefined-reference-error-tp49559.html
Sent from the GnuRadio mailing list archive at Nabble.com.

Hi Mohammed,

first: never “sudo make”. whereever that came from; running a build
process as root is generally a bad idea.

John M. asked nearly exactly the same question (with gr-fft instead
of gr-filter) 17 hours ago, so please refer to that thread for a
(potential) solution.

Greetings,
Marcus

Also,

did you read the manual page for this?

http://gnuradio.org/doc/doxygen/index.html#oot_config_page

M

Hi Marcus,

Thanks for helping me to fix this, it’s working well.
Here is the direct link to the disussion you’ve mentionned:
http://gnuradio.4.n7.nabble.com/Out-of-Tree-linker-error-libgnuradio-MYMOD-so-undefined-reference-to-gr-fft-fft-complex-execute-td49549.html

In other hand, when I add another implementation class into the lib
directory - it doesn’t have an abstract class in include directory, the
make
process returns the same error, but this time it concerns the
constructor of
this new imlementation class I just added !
I’ve mentioned the .cc file in CMakeLists.txt existing in lib directory,
but
I still get the same error.

Any ideas that can help me with this new issue ?

Greetings,
Mohamed


View this message in context:
http://gnuradio.4.n7.nabble.com/Undefined-reference-error-tp49559p49565.html
Sent from the GnuRadio mailing list archive at Nabble.com.