Gnuradio library linking error

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

On 11/03/2011 01:48 PM, Marcus M wrote:

includes the proper header directories and the library. I tried including
Any help will be greatly appreciated.

Thanks

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

the environment variable “PATH” is not related

-josh

On Thu, Nov 3, 2011 at 3:52 PM, Josh B. [email protected] wrote:

fatal error: gr_complex.h: No such file or directory
gcc -o test test.cc -lgnuradio-core

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

the environment variable “PATH” is not related

I tried this and it didn’t work either.

gcc -o test test.c -pthread -I/usr/local/include/gnuradio
-I/usr/local/include -L/usr/local/lib -lgnuradio-core -lgruel -lfftw3f
-lgsl -lgslcblas -lm

Any other suggestion?

Thanks

On Thu, Nov 3, 2011 at 10:04 PM, Marcus M [email protected] wrote:

Thanks
-I/usr/local/include -L/usr/local/lib -lgnuradio-core -lgruel -lfftw3f
-lgsl -lgslcblas -lm

Any other suggestion?

Maybe you are using quoted form include instead of angle-bracket, i.e.
you should use:

#include <gr_complex.h>

Alex

No Alex I am using the right form. What’s strange is that I did the same
thing before on a different computer and it worked.