Hi Manu,
Am I supposed to put ldpc.h in inlclude/ldpc/ and ldpc.cc in
lib/? Or should I put both of them inside lib/ ? Which section
of CMakeLists.txt am I supposed to modify?
Yes, that would be the correct structure.
Just add ldpc.cc to lib/CMakeLists.txt:
It is not clear which option you meant. Both ldpc.h and ldpc.cc inside
lib *OR* should I put .h inside include/ldpc/ ?
ldpc.h goes to /include/ldpc.
You have to realize what your build system does: it takes your .cc files
and turns them to compilation units (which manifest itselves as .o
each), and link them together to your library (something like
libgr-projectname.so).
Your .h's are only there for your compiler so it can find your
declarations, so they should be available for the compiler to find when
you do something like
#include "ldpc/ldpc.h"
and should therefore be in a directory that the compiler will look into
when searching for includes. On the other hand, they don't implement any
functionality by themselves, and will not compile into anything useful,
so they don't belong into your Makefile.
Hope that helped explaining why what belongs where,
greetings,
Marcus
_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio