discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Some doubts in using gr_modtool


From: Marcus Müller
Subject: Re: [Discuss-gnuradio] Some doubts in using gr_modtool
Date: Sun, 08 Sep 2013 16:00:53 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130804 Thunderbird/17.0.8

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

reply via email to

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