discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] CMake Linking Problem


From: devin kelly
Subject: [Discuss-gnuradio] CMake Linking Problem
Date: Fri, 18 Nov 2016 11:15:23 -0500

Hello,

I've created my own GR module with GR mod tool.  I added two files

   include/my_mod/crc.h
   lib/crc.cc

And I can use the functions (crc32 for example) in those files perfectly fine within classes that wind up in libgnuradio-my_mod.so.  However, I can't use the functions in crc.h/crc.cc in external applications that link to libgnuradio-my_mod.so. 

The correct symbols exist in libgnuradio-my_mod.so however the symbols are local, not global.

$ readelf -a lib/libgnuradio-my_mod.so | grep crc32
   192: 0000000000228440  1024 OBJECT  LOCAL  DEFAULT   24 crc32_tab
   426: 000000000000f3f0    52 FUNC    LOCAL  DEFAULT   11 _Z5crc32jPKvm

How can I expose crc32 to the outside world?  Do I have to make the change in one of my CMakeLists.txt files or one of the source files?  The function (crc32) isn't a static.

Thanks for any help,
Devin

reply via email to

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