Kuang-Chun Cheng wrote:
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 !!
cross compiler ?
In cross-environment import library is
.../<TARGET_ALIAS>/lib/libws2_32.a along with other import libraries.
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 ?
Not sure what is cause of issue. The process of you copy is not clear.
"... and use gnet2-2.0.8 to create ... ...... Warning: linker path does
not have real file for library -lws2_32 ...." Look like issue with
native build and missing installation of w32api dev. package.
Thanks
KC
Roumen
_______________________________________________
http://lists.gnu.org/mailman/listinfo/libtool