Re: [Discuss-gnuradio] CMake Linking Problem

2016-11-18 Thread Marcus Müller
Hi Devin, in include/my_mod/api.h you'll find a #define like this #define MY_MOD_API __STUFF use MY_MOD_API in front of the classes and free-standing functions you want to export, like uint32_t MY_MOD_API crc32(unsigned int, void const*, unsigned long); Best regards, Marcus PS: having written

[Discuss-gnuradio] CMake Linking Problem

2016-11-18 Thread devin kelly
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