Re: [gnet] Can find gnetconfig.h



On Tue, 2006-03-28 at 14:12 -0800, yinglcs2 yahoo com wrote:

> I download gnet 2.0 and run '.configure and make
> install'
> 
> I think it install correctly in
> /usr/local/include/gnet-2.0/, but when I try to
> compile my application with gnet, it said gnetconfig.h
> can't find. 
> 
> 
> /usr/local/include/gnet-2.0/gnet.h:26:24: error:
> gnetconfig.h: No such file or directory

Your compiler CFLAGS for GNet should come from

   pkg-config --cflags gnet-2.0

You shouldn't specify the include directory manually really.
If you compile from the command line, you can do something like:

 % gcc -Wall -g -o gnettest gnettest.c `pkg-config --cflags --libs
gnet-2.0`

gnetconfig.h lives in $prefix/lib/gnet-2.0/include/gnetconfig.h

Cheers
 -Tim





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