[pcre-dev] [Bug 970] New: Mingw32 CMake : HAVE_STRTOQ is not…

Top Page
Delete this message
Author: Gandi
Date:  
To: pcre-dev
New-Topics: [pcre-dev] [Bug 970] Mingw32 CMake : HAVE_STRTOQ is not found but is defined
Subject: [pcre-dev] [Bug 970] New: Mingw32 CMake : HAVE_STRTOQ is not found but is defined
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=970
           Summary: Mingw32 CMake : HAVE_STRTOQ is not found but is defined
           Product: PCRE
           Version: 8.01
          Platform: x86-64
        OS/Version: Windows
            Status: NEW
          Severity: bug
          Priority: high
         Component: Code
        AssignedTo: ph10@???
        ReportedBy: pierre.pontier@???
                CC: pcre-dev@???



CMake : CodeBlocks MinGW Makefiles :
...
Looking for strtoll
Looking for strtoll - found
Looking for strtoq
Looking for strtoq - not found
...

But when i compile in CodeBlocks project :
//Build Messages
pcrecpp.cc:819: error: `strtoq' was not declared in this scope
pcrecpp.cc:851: error: `strtouq' was not declared in this scope

//Code
#if defined HAVE_STRTOQ
long long r = strtoq(str, &end, radix);
#elif defined HAVE_STRTOLL
long long r = strtoll(str, &end, radix);


remark :
config.h generate by CMake
#define HAVE_STRTOLL 1
/* #undef HAVE_STRTOQ */

and HAVE_CONFIG_H


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email