Re: [gnet] Need help in linking my gnet application
- From: Tim-Philipp Müller <t i m zen co uk>
- To: ying lcs <yinglcs gmail com>
- Cc: gnet-list gnome org
- Subject: Re: [gnet] Need help in linking my gnet application
- Date: Fri, 03 Oct 2008 17:02:21 +0100
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]