libtool
[Top][All Lists]
Advanced

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

libtool did not search ws2_32.dll


From: Kuang-Chun Cheng
Subject: libtool did not search ws2_32.dll
Date: Thu, 14 Jan 2010 02:47:00 +0800

Hi,

I'm using mingw cross compiler (with GNU autotools) under Linux to build DLL.
One of the package I build is gnet2-2.0.8 which will link winsock library.
Everything is OK, the DLL is created under Linux.

When I copy the library to WinXP and use gnet2-2.0.8 to create
network my app.  The libtool complain that it can't handle -lws2_32
and show me error message:

*** Warning: linker path does not have real file for library -lws2_32."
*** I have the capability to make that library automatically link in when"
*** you link to this library.  But I can only do this if you have a"
*** shared version of the library, which you do not appear to have"
*** because I did check the linker path looking for a file starting"

I try to trace what's wrong in libtool ... and found that libtool try to search
libws2_32.dll under couple paths ... but libtool does not know the
real DLL is c:\windows\system32\ws2_32.dll !!

If I copy/rename c:\windows\system32\ws2_32.dll to c:\mingw\bin\libws2_32.dll
then everything work OK.

Is this expected ? or a libtool bug ?

Thanks
KC




reply via email to

[Prev in Thread] Current Thread [Next in Thread]