Re: [pcre-dev] Yet Another RC

Kezdőlap
Üzenet törlése
Szerző: Sheri
Dátum:  
Címzett: Craig Silverstein
CC: pcre-dev
Tárgy: Re: [pcre-dev] Yet Another RC
Craig Silverstein wrote:
> } Didn't work with msys/configure
>
> Blah, of course: We need to include windows.h! Try this code snippet
> instead:
>
>       #ifdef HAVE_WINDOWS_H
>       #include <windows.h>
>       #define HAVE_STRTOLL 1
>       #define strtoll     _strtoui64
>       #define strtoull    _strtoi64
>       #endif

>
>
> Actually, a bit better is to do this:
>
>       #ifdef HAVE_WINDOWS_H
>       #define WIN32_LEAN_AND_MEAN  /* We always want minimal includes */
>       #include <windows.h>
>       #define HAVE_STRTOLL 1
>       #define strtoll     _strtoui64
>       #define strtoull    _strtoi64
>       #endif

>
> Sorry for all these iterations. I hope this one is the charm.
>

Hi Craig,

I only tried the second one, any point in trying the first?

/bin/sh ./libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. 
-I../pcre-7.4-RC3     -O2 -MT pcrecpp.lo -MD -MP -MF .deps/pcrecpp.Tpo 
-c -o pcrecpp.lo ../pcre-7.4-RC3/pcrecpp.cc
 g++ -DHAVE_CONFIG_H -I. -I../pcre-7.4-RC3 -O2 -MT pcrecpp.lo -MD -MP 
-MF .deps/pcrecpp.Tpo -c ../pcre-7.4-RC3/pcrecpp.cc  -DDLL_EXPORT -DPIC 
-o .libs/pcrecpp.o
../pcre-7.4-RC3/pcrecpp.cc: In static member function `static bool 
pcrecpp::Arg::parse_longlong_radix(const char*, int, void*, int)':
../pcre-7.4-RC3/pcrecpp.cc:773: error: `_strtoui64' undeclared (first 
use this function)
../pcre-7.4-RC3/pcrecpp.cc:773: error: (Each undeclared identifier is 
reported only once for each function it appears in.)
../pcre-7.4-RC3/pcrecpp.cc: In static member function `static bool 
pcrecpp::Arg::parse_ulonglong_radix(const char*, int, void*, int)':
../pcre-7.4-RC3/pcrecpp.cc:800: error: `_strtoi64' undeclared (first use 
this function)
make[1]: *** [pcrecpp.lo] Error 1
make[1]: Leaving directory `/c/pcre-7.4Edit/build4RC3Msys'
make: *** [all] Error 2


Sorry :D

Regards,
Sheri