[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: Mingw regex compile issue



I have now solved the issue with regex, but still have problems with linking to the ws2_32.
 
It should be linked so it will work on an windows machine. Should I use the ddl within the windows system 32 directory?
 
I really do not know how to link to this library.
 
regards
rasmus
 

From: djdunke@hotmail.com
To: openldap-technical@openldap.org
Subject: Mingw regex compile issue
Date: Mon, 1 Feb 2010 11:30:25 +0100

Hello
 
I am trying to compile the openldap v. 2.4.19 client api with MingW and Msys.
It will successfully make the configure command, but when I try to make, it complains about not having a shared version of the regex library.
I have tried to use both 'mingw-libgnurx-2.5.1' and 'regex-0.12' but with no luck.
 
I am only interested in building the client api libraries, but the error results in only building a static version of the library and I really need the shared dll's instead.
 
This is the Warning/issue I get trying to compile.
---------------------------------------------------------------------
 
/bin/sh ../../libtool  --mode=link gcc -g -O2    -no-undefined -avoid-version -rpath /usr/local/lib -o liblber.la assert.lo decode.lo encode.lo io.lo bprint.lo debug.lo memory.lo options.lo sockbuf.lo nt_err.lo version.lo  -lregex  -lws2_32
*** Warning: linker path does not have real file for library -lregex.
*** 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
*** with libregex and none of the candidates passed a file format test
*** using a file magic. Last file checked: /bin/libregex.a
*** 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
*** with libws2_32 and none of the candidates passed a file format test
*** using a file magic. Last file checked: /mingw/lib/gcc/mingw32/3.4.5/../../..//libws2_32.a
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.
*** Since this library must not contain undefined symbols,
*** because either the platform does not support them or
*** it was explicitly requested with -no-undefined,
*** libtool will only create a static version of it.
---------------------------------------------------------------------
 
I have tried various options but cannot find the cause of the problem. Any help would be appreciated.
 
Regards
Rasmus
 
 


Tjek op på vennerne fra Facebook og Arto i din Messenger. Læs mere her

Få Facebook og Arto i din Messenger. Læs mere her.