[Poppler-bugs] [Bug 63459] New: Compile fails with latest mingw-w64 compiler
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Apr 12 02:30:01 PDT 2013
https://bugs.freedesktop.org/show_bug.cgi?id=63459
Priority: medium
Bug ID: 63459
Assignee: poppler-bugs at lists.freedesktop.org
Summary: Compile fails with latest mingw-w64 compiler
Severity: normal
Classification: Unclassified
OS: Windows (All)
Reporter: hib at hiberis.nl
Hardware: All
Status: NEW
Version: unspecified
Component: general
Product: poppler
When compiling poppler with the latest mingw-w64 compiler it fails with:
[ 320s] CXX perf-test.o
[ 321s] perf-test.cc: In function 'void strcpy_s(char*, size_t, const char*)':
[ 321s] perf-test.cc:329:58: error: new declaration 'void strcpy_s(char*,
size_t, const char*)'
[ 321s] void strcpy_s(char* dst, size_t dst_size, const char* src)
[ 321s] ^
[ 321s] In file included from
/usr/i686-w64-mingw32/sys-root/mingw/include/_mingw.h:13:0,
[ 321s] from
/usr/i686-w64-mingw32/sys-root/mingw/include/windows.h:9,
[ 321s] from perf-test.cc:24:
[ 321s] /usr/i686-w64-mingw32/sys-root/mingw/include/sec_api/string_s.h:28:3:
error: ambiguates old declaration 'errno_t strcpy_s(char*, size_t, const
char*)'
[ 321s]
__CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_0_2_(errno_t,strcpy_s,char,,_Dst,size_t,,_SizeInBytes,const
char *,,_Src)
[ 321s] ^
[ 321s] perf-test.cc: In function 'void strcat_s(char*, size_t, const char*)':
[ 321s] perf-test.cc:342:58: error: new declaration 'void strcat_s(char*,
size_t, const char*)'
[ 321s] void strcat_s(char *dst, size_t dst_size, const char* src)
[ 321s] ^
[ 321s] In file included from
/usr/i686-w64-mingw32/sys-root/mingw/include/_mingw.h:13:0,
[ 321s] from
/usr/i686-w64-mingw32/sys-root/mingw/include/windows.h:9,
[ 321s] from perf-test.cc:24:
[ 321s] /usr/i686-w64-mingw32/sys-root/mingw/include/sec_api/string_s.h:33:3:
error: ambiguates old declaration 'errno_t strcat_s(char*, size_t, const
char*)'
[ 321s]
__CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_0_2_(errno_t,strcat_s,char,,strDestination,size_t,,numberOfElements,const
char *,,strSource)
[ 321s] ^
The reasons for this failure is that the mingw-w64 compiler has strcpy_s and
strcat_s build in, but poppler tries to redefine it anyway.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler-bugs/attachments/20130412/41e40be7/attachment.html>
More information about the Poppler-bugs
mailing list