hi again, Pcre package only has libpcre.dll.a (no libpcre.a). can i build a program that links statically to Pcre? i tried to compile pcredemo.c and it ran fine with dynamic linking. however, when i tried to compile statically with:
$ gcc -static pcredemo.c -o pcredemo -I/c/Program\ Files/GnuWin32/include/ -L/c/Program\ Files/GnuWin32/lib/ -lpcre i got these errors: C:/DOCUME~1/x/LOCALS~1/Temp/cc0qfaaa.o:pcredemo.c:(.text+0x1d5): undefined reference to `_imp__pcre_free' C:/DOCUME~1/x/LOCALS~1/Temp/cc0qfaaa.o:pcredemo.c:(.text+0x407): undefined reference to `_imp__pcre_free' C:/DOCUME~1/x/LOCALS~1/Temp/cc0qfaaa.o:pcredemo.c:(.text+0x501): undefined reference to `_imp__pcre_free' C:/DOCUME~1/x/LOCALS~1/Temp/cc0qfaaa.o:pcredemo.c:(.text+0x6cd): undefined reference to `_imp__pcre_free' collect2: ld returned 1 exit status ____________________________________________________________________________________ Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more. http://mobile.yahoo.com/go?refer=1GNXIC ------------------------------------------------------------------------- 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