On Tue, May 14, 2013 at 8:17 PM, Gong Zhang <[email protected]> wrote:


> I have known that the .cc example in gnuradio would be compiled when
> running "make" in the build directory.But how can I compile my own .cc
> file through g++ command line?
>

This is better done in a Makefile of your own design, but a quick
command-line for g++ is:

$ g++ -o dial_tone dial_tone.cc `pkg-config --cflags gnuradio-core`
`pkg-config --libs gnuradio-core` `pkg-config --libs gnuradio-audio`

-- 
Johnathan Corgan
Corgan Labs - SDR Training and Development Services
http://corganlabs.com
_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to