[pcre-dev] Windows libraries with PCRE

Top Page
Delete this message
Author: Themis, Jim
Date:  
To: pcre-dev
Subject: [pcre-dev] Windows libraries with PCRE
Hey all,



I have gotten pcre to compile/run within .NET 2003 with a little test
app. I have pcre and the test app within a single solution and mostly
default values are far as what libraries I link in. However, I am
trying to transition the pcre library into our script (Jam) based build
environment. I am only using the pcre lib (no psox or wrappers).



I link the pcre.lib that was created by the "Official" build process
with my local/private test app. All is well until I run and I crash
somewhere in the

------------------------------------

            ntdll.dll!7c918fea()          


            ntdll.dll!7c91d369()         


>          msvcr71d.dll!_lock_fhandle(int fh=2147328000)  Line 453   C


            ntdll.dll!7c91d369()         


            msvcr71d.dll!_write(int fh=4362836, const void *
buf=0x00427504, unsigned int cnt=0)  Line 83 + 0x13          C


            test.exe!pcre_printint(real_pcre * external_re=0x00222d68,
_iobuf * f=0x00429254, int print_lengths=1)  Line 182 + 0x15
C


            test.exe!pcre_compile2(const char * pattern=0x00424410, int
options=0, int * errorcodeptr=0x00000000, const char * *
errorptr=0x00dbff5c, int * erroroffset=0x00dbff50, const unsigned char *
tables=0x00420bc8)  Line 6127 + 0x13         C


            test.exe!pcre_compile(const char * pattern=0x00424410, int
options=0, const char * * errorptr=0x00dbff5c, int *
erroroffset=0x00dbff50, const unsigned char * tables=0x00000000)  Line
5717 + 0x1b          C


            test.exe!main(int argc=1, char * * argv=0x00222cf8)  Line 34
+ 0x18           C


            test.exe!mainCRTStartup()  Line 398 + 0x11         C


            kernel32.dll!7c816fd7()    


            ntdll.dll!7c91d369() 




I believe this has something to do with the libraries I am linking
in......The "Official" build scripts only include:

winspool.lib

kernel32.lib

user32.lib

gdi32.lib

comdlg32.lib

shell32.lib

Imm32.lib





I am only somewhat familiar with the library/dll structure of windows so
I was hoping someone has run into this problem before......I have tried
the NODEFAULTLIB flag, eliminated one at a time with no luck....



Any assistance would be appreciated. Hopefully (yet confusingly) I
provided all the details.....I guess the simple question is what does
pcre core need for libs to run on a Windows XP machine?



Thanks,

Jim Themis