discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Compile my own .cc file in gnuradio


From: Johnathan Corgan
Subject: Re: [Discuss-gnuradio] Compile my own .cc file in gnuradio
Date: Tue, 14 May 2013 21:33:24 -0700

On Tue, May 14, 2013 at 8:17 PM, Gong Zhang <address@hidden> 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
reply via email to

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