thanks for replying. i tried to link statically to Pcre because the package
would install the dll to C:\Program Files\GnuWin32\bin by default. so running a
dynamically linked program would complain about not being able to find the
pcre3.dll. is there a way to tell Windows to look in C:\Program
Files\GnuWin32\bin for the dll? i think normally Windows just look for dll
files in the current directory and in C:\WINDOWS\system32, right?

otherwise, i'll need to include pcre3.dll with my compiled program. or i might
just link it statically. btw, i tried to compile pcre-7.2. it didn't go well.
i'll try the options you sugguested.

tuit

--- Kees Zeelenberg <[EMAIL PROTECTED]> wrote:
> 
> You cannot create a static version of your program by using libpcre.dll.a. 
> This library contains only references to the DLL and does not carry any 
> compiled code.
> 
> For myself, I cannot see why using the DLL should be avoided. MS-Windows 
> overflows with DLL's, your program very probably links to many of these 
> (msvcrt.dll, kernel32.dll, user32.dll, ntdll.dll, ...), so why shouldn't 
> your project use another one?
> If you still want a static library, you can follow the steps at 
> http://gnuwin32.sourceforge.net/compile.html, and use the 
> "--enable-static --disable-shared" option to configure. You could also tweak 
> the the sources from Gnuwin32 (in particular replacing any occurrence 
> of -DBUILD_PCRE_DLL or -DBUILD_PCRECPP_DLL
> by -DSTATIC -D__STATIC__  -DPCRE_STATIC), but on the way to a usable static 
> library, you would probably encounter several problems (which shouldn't be 
> hard to solve if you have a reasonable amount of experience in Make, 
> Autoconf and Automake).
> 
> Kees Zeelenberg 
> 
> 



       
____________________________________________________________________________________
Building a website is a piece of cake. Yahoo! Small Business gives you all the 
tools to get online.
http://smallbusiness.yahoo.com/webhosting 

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users

Reply via email to