Re: [gnet] Need help in linking my gnet application



On Thu, 2008-10-02 at 00:33 -0500, ying lcs wrote:

Hi,

> I appreciate if someone can help me with my gnet linking error:
> 
> In my "c++" options , i already have ' -L/usr/local/lib -lgnet-2.0'.
> Can you please tell me why the linking fails?  I have the 'gnet.h'
> include in my .cpp and I apparently compile fine.

Did you obtain the necessary compiler flags via

 pkg-config --cflags gnet-2.0

and the linker flags via

 pkg-config --libs gnet-2.0

?

(You might need to do 'export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:
$PKG_CONFIG_PATH' and 'export LD_LIBRARY_PATH=/usr/local/lib:
$LD_LIBRARY_PATH' if you've installed gnet into a /usr/local/ prefix).

Cheers
 -Tim






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