discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] gnuradio library linking error


From: Josh Blum
Subject: Re: [Discuss-gnuradio] gnuradio library linking error
Date: Thu, 03 Nov 2011 13:52:47 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1


On 11/03/2011 01:48 PM, Marcus M wrote:
> Hi,
> I have a test application that I want to link with the gnuradio library. I
> user the proper link variables but I always get the error of the following
> type.
> 
> fatal error: gr_complex.h: No such file or directory
> compilation terminated.
> 
> In this test application I am using the gr_complex data type and I am
> including the proper header variable. I checked my $PATH variable and it
> includes the proper header directories and the library. I tried including
> the whole path in #include but I still get the same error. What's happening
> here?
> 
> I am compiling the application as
> gcc -o test test.cc -lgnuradio-core
> 
> I even tried this but it throws the same error. Somehow it's unable to find
> the header even thought the path are included in the $PATH variable.
> gcc -o test test.cc `pkg-config --libs gnuradio-core`
> 
> Any help will be greatly appreciated.
> 
> Thanks
> 
> 

You are missing cflags, use pkg-config --cflags

the environment variable "PATH" is not related

-josh



reply via email to

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