Re:[2] [gnet-dev] New Win32 GNet and Mingw



Hi Andy,

Thanks for the support, it works fine now.

>I didn't have to do this for any of the other examples.
You mean for the -lws2_32 switch ?

Pascal


"Andrew J. Lanoix" <alanoix umich edu> wrote on 07/03/01 06:12:22:
>
>Pascal,
>
>1) Create ws2tcpip.h in your gnet dir (this is just an empty text file)
>2) add -lws2_32 to the end of the line in your makefile (This links in 
>winsock2)
>
>ex:
>gcc -g -Wall -mno-cygwin -mpentium -fnative-struct -I../glib -I. -I../gnet 
>-L../glib -L../gnet hostinfo.c -o hostinfo -lgnet-1.0 -lglib-1.3 -lws2_32
>
>I didn't have to do this for any of the other examples.
>Andy
>
>--On Tuesday, March 06, 2001 10:41 PM +0100 Pascal Sitbon 
><pascal sitbon free fr> wrote:
>
>> Hi,
>>
>> I'm very interested to use mingw to link GNet. So, I download everything.
>>
>> I've build the libgnet-1.0.a (using dlltool from mingw).
>>
>> But when I tried to link with the example 'hostinfo.c' I get the message :
>>
>> --------------------------( code here )--------------------------
>> $ make
>> /home/luigi/gcc/bin/gcc -mno-cygwin -mpentium -fnative-struct -o
>> hostinfo.exe ho stinfo.c -L../../src/glib -lglib-1.3
>> -L../../src/gnet-dev-20010304/Release -lgne t-1.0 -I../../src/glib
>> -I../../src/gnet-dev-20010304
>> In file included from hostinfo.c:24:
>> .\..\src\gnet-dev-20010304\gnet-private.h:83: ws2tcpip.h: No such file or
>> direc tory
>> make: *** [hostinfo] Error 1
>> --------------------------( /code here )--------------------------
>>
>> Of course, I didn't have any ws2tcpip.h... I tried to comment the
>> < include "ws2tcpip.h" > (sorry for the spaces but my email reader is
>> a html-lover :( ), but I get of course another error :
>>
>> --------------------------( code here )--------------------------
>> [...]
>> In file included from hostinfo.c:24:
>> .\..\src\gnet-dev-20010304\gnet-private.h:83: ws2tcpip.h: No such file or
>> direc tory
>> make: *** [hostinfo] Error 1
>> --------------------------( /code here )--------------------------
>>
>>
>> If someone has succedd in linking GNet with mingw, can he give me some
>> tips ?
>>
>> Many thanks,
>> Pascal
>>
>>
>>
>> "Andrew J. Lanoix" <alanoix umich edu> wrote on 06/03/01 03:46:04:
>> >
>> >I have built GNet from CVS (basically 1.0.4) against Tor's latest Glib
>> 1.3  >Win32 snapshot (March 1, 2001). He has not updated his webpage with
>> a link  >but the files are there.  [eg.
>> >http://www.gimp.org/win32/glib-dev-20010301.zip]
>> >
>> >Our zip files are in the download section of GNet's website.
>> >
>> >Andy
>> >_______________________________________________
>> >gnet-dev mailing list
>> >gnet-dev gnetlibrary org
>> >http://www.gnetlibrary.org/mailman/listinfo/gnet-dev
>>
>> _______________________________________________
>> gnet-dev mailing list
>> gnet-dev gnetlibrary org
>> http://www.gnetlibrary.org/mailman/listinfo/gnet-dev




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