[jira] [Commented] (XERCESC-2111) Build failure with Windows and VS2013
[ https://issues.apache.org/jira/browse/XERCESC-2111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16116773#comment-16116773 ] Roger Leigh commented on XERCESC-2111: -- I've tested with VS2013 and the sprintf workaround is working fine (just a compiler warning), so I think this is fine as it is for 3.2.0, but we could look at sstream for the future if using the STL is allowed (I'd still like to use standard exceptions, but probably too late for 3.2.x at this point). > Build failure with Windows and VS2013 > - > > Key: XERCESC-2111 > URL: https://issues.apache.org/jira/browse/XERCESC-2111 > Project: Xerces-C++ > Issue Type: Bug > Components: Build >Affects Versions: 3.2.0 > Environment: Windows Server 2008R2 with Visual Studio 2013 >Reporter: Roger Leigh >Assignee: Scott Cantor > Fix For: 3.2.0 > > > snprintf isn't available before VS2015, though a Microsoft-specific variant > is available which we could use conditionally. However, even this is not > present in earlier Visual Studio releases. Do we strictly need to use > snprintf here? If we do, how far back do our Visual Studio portability > requirements go? > {{{ > 17:53:44 FAILED: C:\PROGRA~2\MICROS~3.0\VC\bin\amd64\cl.exe /nologo /TP > -DHAVE_CONFIG_H=1 -DXERCES_BUILDING_LIBRARY=1 > -DXERCES_DLL_NAME=\"xerces-c_3_2.dll\0\" -D_THREAD_SAFE=1 -Dxerces_c_EXPORTS > -I. > -ID:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src > -Isrc > -ID:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\stage\include > /DWIN32 /D_WINDOWS /W3 /GR /EHsc /W3 /MD /O2 /Ob2 /DNDEBUG /showIncludes > /Fosrc\CMakeFiles\xerces-c.dir\xercesc\util\XMLDateTime.cpp.obj > /Fdsrc\CMakeFiles\xerces-c.dir\ /FS -c > D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src\xercesc\util\XMLDateTime.cpp > 17:53:44 > D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src\xercesc\util\XMLDateTime.cpp(471) > : warning C4244: 'initializing' : conversion from 'time_t' to 'unsigned > long', possible loss of data > 17:53:44 > D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src\xercesc\util\XMLDateTime.cpp(473) > : warning C4244: 'initializing' : conversion from 'time_t' to 'unsigned > long', possible loss of data > 17:53:44 > D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src\xercesc\util\XMLDateTime.cpp(475) > : warning C4244: 'initializing' : conversion from 'time_t' to 'unsigned > long', possible loss of data > 17:53:44 > D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src\xercesc\util\XMLDateTime.cpp(477) > : warning C4244: 'initializing' : conversion from 'time_t' to 'unsigned > long', possible loss of data > 17:53:44 > D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src\xercesc\util\XMLDateTime.cpp(480) > : error C3861: 'snprintf': identifier not found > }}} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org For additional commands, e-mail: c-dev-h...@xerces.apache.org
[jira] [Commented] (XERCESC-2111) Build failure with Windows and VS2013
[ https://issues.apache.org/jira/browse/XERCESC-2111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16116752#comment-16116752 ] Scott Cantor commented on XERCESC-2111: --- Given that it should be fine for the time being I'm ok parking it, but I think that is the natural "fix" and it's internal anyway, so if we wanted to do it in a patch later we certainly can. > Build failure with Windows and VS2013 > - > > Key: XERCESC-2111 > URL: https://issues.apache.org/jira/browse/XERCESC-2111 > Project: Xerces-C++ > Issue Type: Bug > Components: Build >Affects Versions: 3.2.0 > Environment: Windows Server 2008R2 with Visual Studio 2013 >Reporter: Roger Leigh >Assignee: Scott Cantor > Fix For: 3.2.0 > > > snprintf isn't available before VS2015, though a Microsoft-specific variant > is available which we could use conditionally. However, even this is not > present in earlier Visual Studio releases. Do we strictly need to use > snprintf here? If we do, how far back do our Visual Studio portability > requirements go? > {{{ > 17:53:44 FAILED: C:\PROGRA~2\MICROS~3.0\VC\bin\amd64\cl.exe /nologo /TP > -DHAVE_CONFIG_H=1 -DXERCES_BUILDING_LIBRARY=1 > -DXERCES_DLL_NAME=\"xerces-c_3_2.dll\0\" -D_THREAD_SAFE=1 -Dxerces_c_EXPORTS > -I. > -ID:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src > -Isrc > -ID:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\stage\include > /DWIN32 /D_WINDOWS /W3 /GR /EHsc /W3 /MD /O2 /Ob2 /DNDEBUG /showIncludes > /Fosrc\CMakeFiles\xerces-c.dir\xercesc\util\XMLDateTime.cpp.obj > /Fdsrc\CMakeFiles\xerces-c.dir\ /FS -c > D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src\xercesc\util\XMLDateTime.cpp > 17:53:44 > D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src\xercesc\util\XMLDateTime.cpp(471) > : warning C4244: 'initializing' : conversion from 'time_t' to 'unsigned > long', possible loss of data > 17:53:44 > D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src\xercesc\util\XMLDateTime.cpp(473) > : warning C4244: 'initializing' : conversion from 'time_t' to 'unsigned > long', possible loss of data > 17:53:44 > D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src\xercesc\util\XMLDateTime.cpp(475) > : warning C4244: 'initializing' : conversion from 'time_t' to 'unsigned > long', possible loss of data > 17:53:44 > D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src\xercesc\util\XMLDateTime.cpp(477) > : warning C4244: 'initializing' : conversion from 'time_t' to 'unsigned > long', possible loss of data > 17:53:44 > D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src\xercesc\util\XMLDateTime.cpp(480) > : error C3861: 'snprintf': identifier not found > }}} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org For additional commands, e-mail: c-dev-h...@xerces.apache.org
[jira] [Commented] (XERCESC-2111) Build failure with Windows and VS2013
[ https://issues.apache.org/jira/browse/XERCESC-2111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16116725#comment-16116725 ] Roger Leigh commented on XERCESC-2111: -- I would personally be fine with STL and ostringstream or equivalent. At worst, it increases the compile time of a few files slightly. It's more portable than snprintf given Microsoft's previous lack of support for C and C99, so would be an obvious safe replacement. I use them all the time without trouble, and you can even imbue streams with locales for more control over serialisation should be care about e.g. stable number formatting etc. > Build failure with Windows and VS2013 > - > > Key: XERCESC-2111 > URL: https://issues.apache.org/jira/browse/XERCESC-2111 > Project: Xerces-C++ > Issue Type: Bug > Components: Build >Affects Versions: 3.2.0 > Environment: Windows Server 2008R2 with Visual Studio 2013 >Reporter: Roger Leigh >Assignee: Scott Cantor > Fix For: 3.2.0 > > > snprintf isn't available before VS2015, though a Microsoft-specific variant > is available which we could use conditionally. However, even this is not > present in earlier Visual Studio releases. Do we strictly need to use > snprintf here? If we do, how far back do our Visual Studio portability > requirements go? > {{{ > 17:53:44 FAILED: C:\PROGRA~2\MICROS~3.0\VC\bin\amd64\cl.exe /nologo /TP > -DHAVE_CONFIG_H=1 -DXERCES_BUILDING_LIBRARY=1 > -DXERCES_DLL_NAME=\"xerces-c_3_2.dll\0\" -D_THREAD_SAFE=1 -Dxerces_c_EXPORTS > -I. > -ID:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src > -Isrc > -ID:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\stage\include > /DWIN32 /D_WINDOWS /W3 /GR /EHsc /W3 /MD /O2 /Ob2 /DNDEBUG /showIncludes > /Fosrc\CMakeFiles\xerces-c.dir\xercesc\util\XMLDateTime.cpp.obj > /Fdsrc\CMakeFiles\xerces-c.dir\ /FS -c > D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src\xercesc\util\XMLDateTime.cpp > 17:53:44 > D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src\xercesc\util\XMLDateTime.cpp(471) > : warning C4244: 'initializing' : conversion from 'time_t' to 'unsigned > long', possible loss of data > 17:53:44 > D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src\xercesc\util\XMLDateTime.cpp(473) > : warning C4244: 'initializing' : conversion from 'time_t' to 'unsigned > long', possible loss of data > 17:53:44 > D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src\xercesc\util\XMLDateTime.cpp(475) > : warning C4244: 'initializing' : conversion from 'time_t' to 'unsigned > long', possible loss of data > 17:53:44 > D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src\xercesc\util\XMLDateTime.cpp(477) > : warning C4244: 'initializing' : conversion from 'time_t' to 'unsigned > long', possible loss of data > 17:53:44 > D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src\xercesc\util\XMLDateTime.cpp(480) > : error C3861: 'snprintf': identifier not found > }}} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org For additional commands, e-mail: c-dev-h...@xerces.apache.org
[jira] [Commented] (XERCESC-2111) Build failure with Windows and VS2013
[ https://issues.apache.org/jira/browse/XERCESC-2111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16116699#comment-16116699 ] Scott Cantor commented on XERCESC-2111: --- If we're really bothered, I would just suggest we bite the non-bullet and use the STL. The only platform where that really requires any care is Solaris because it comes with more than one, but it still works fine. It's pretty much automatic on any gcc/clang build and certainly on Windows. I'm pretty sure 3.1 ends up linked to libstdc++ anyway (I just checked in fact). > Build failure with Windows and VS2013 > - > > Key: XERCESC-2111 > URL: https://issues.apache.org/jira/browse/XERCESC-2111 > Project: Xerces-C++ > Issue Type: Bug > Components: Build >Affects Versions: 3.2.0 > Environment: Windows Server 2008R2 with Visual Studio 2013 >Reporter: Roger Leigh >Assignee: Scott Cantor > Fix For: 3.2.0 > > > snprintf isn't available before VS2015, though a Microsoft-specific variant > is available which we could use conditionally. However, even this is not > present in earlier Visual Studio releases. Do we strictly need to use > snprintf here? If we do, how far back do our Visual Studio portability > requirements go? > {{{ > 17:53:44 FAILED: C:\PROGRA~2\MICROS~3.0\VC\bin\amd64\cl.exe /nologo /TP > -DHAVE_CONFIG_H=1 -DXERCES_BUILDING_LIBRARY=1 > -DXERCES_DLL_NAME=\"xerces-c_3_2.dll\0\" -D_THREAD_SAFE=1 -Dxerces_c_EXPORTS > -I. > -ID:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src > -Isrc > -ID:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\stage\include > /DWIN32 /D_WINDOWS /W3 /GR /EHsc /W3 /MD /O2 /Ob2 /DNDEBUG /showIncludes > /Fosrc\CMakeFiles\xerces-c.dir\xercesc\util\XMLDateTime.cpp.obj > /Fdsrc\CMakeFiles\xerces-c.dir\ /FS -c > D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src\xercesc\util\XMLDateTime.cpp > 17:53:44 > D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src\xercesc\util\XMLDateTime.cpp(471) > : warning C4244: 'initializing' : conversion from 'time_t' to 'unsigned > long', possible loss of data > 17:53:44 > D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src\xercesc\util\XMLDateTime.cpp(473) > : warning C4244: 'initializing' : conversion from 'time_t' to 'unsigned > long', possible loss of data > 17:53:44 > D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src\xercesc\util\XMLDateTime.cpp(475) > : warning C4244: 'initializing' : conversion from 'time_t' to 'unsigned > long', possible loss of data > 17:53:44 > D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src\xercesc\util\XMLDateTime.cpp(477) > : warning C4244: 'initializing' : conversion from 'time_t' to 'unsigned > long', possible loss of data > 17:53:44 > D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src\xercesc\util\XMLDateTime.cpp(480) > : error C3861: 'snprintf': identifier not found > }}} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org For additional commands, e-mail: c-dev-h...@xerces.apache.org
[jira] [Commented] (XERCESC-2111) Build failure with Windows and VS2013
[ https://issues.apache.org/jira/browse/XERCESC-2111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16116681#comment-16116681 ] Roger Leigh commented on XERCESC-2111: -- Also note https://stackoverflow.com/questions/2915672/snprintf-and-visual-studio-2010 We use this in libtiff like so: https://github.com/vadz/libtiff/blob/master/port/snprintf.c and this CMake logic: https://github.com/vadz/libtiff/blob/master/port/CMakeLists.txt#L42 and this autoconf logic: https://github.com/vadz/libtiff/blob/master/configure.ac#L429 I could look at implementing this in Xerces if you like. > Build failure with Windows and VS2013 > - > > Key: XERCESC-2111 > URL: https://issues.apache.org/jira/browse/XERCESC-2111 > Project: Xerces-C++ > Issue Type: Bug > Components: Build >Affects Versions: 3.2.0 > Environment: Windows Server 2008R2 with Visual Studio 2013 >Reporter: Roger Leigh >Assignee: Scott Cantor > Fix For: 3.2.0 > > > snprintf isn't available before VS2015, though a Microsoft-specific variant > is available which we could use conditionally. However, even this is not > present in earlier Visual Studio releases. Do we strictly need to use > snprintf here? If we do, how far back do our Visual Studio portability > requirements go? > {{{ > 17:53:44 FAILED: C:\PROGRA~2\MICROS~3.0\VC\bin\amd64\cl.exe /nologo /TP > -DHAVE_CONFIG_H=1 -DXERCES_BUILDING_LIBRARY=1 > -DXERCES_DLL_NAME=\"xerces-c_3_2.dll\0\" -D_THREAD_SAFE=1 -Dxerces_c_EXPORTS > -I. > -ID:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src > -Isrc > -ID:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\stage\include > /DWIN32 /D_WINDOWS /W3 /GR /EHsc /W3 /MD /O2 /Ob2 /DNDEBUG /showIncludes > /Fosrc\CMakeFiles\xerces-c.dir\xercesc\util\XMLDateTime.cpp.obj > /Fdsrc\CMakeFiles\xerces-c.dir\ /FS -c > D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src\xercesc\util\XMLDateTime.cpp > 17:53:44 > D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src\xercesc\util\XMLDateTime.cpp(471) > : warning C4244: 'initializing' : conversion from 'time_t' to 'unsigned > long', possible loss of data > 17:53:44 > D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src\xercesc\util\XMLDateTime.cpp(473) > : warning C4244: 'initializing' : conversion from 'time_t' to 'unsigned > long', possible loss of data > 17:53:44 > D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src\xercesc\util\XMLDateTime.cpp(475) > : warning C4244: 'initializing' : conversion from 'time_t' to 'unsigned > long', possible loss of data > 17:53:44 > D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src\xercesc\util\XMLDateTime.cpp(477) > : warning C4244: 'initializing' : conversion from 'time_t' to 'unsigned > long', possible loss of data > 17:53:44 > D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src\xercesc\util\XMLDateTime.cpp(480) > : error C3861: 'snprintf': identifier not found > }}} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org For additional commands, e-mail: c-dev-h...@xerces.apache.org
[jira] [Commented] (XERCESC-2111) Build failure with Windows and VS2013
[ https://issues.apache.org/jira/browse/XERCESC-2111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16115881#comment-16115881 ] Scott Cantor commented on XERCESC-2111: --- r1804250 I'm going to leave a comment and just conditionally use sprintf. The buffer used is large enough to handle unsigned longs up to 50+ characters long, and I really can't imagine anything not having snprintf but also having 128-bit longs. That said, if nobody objects to using the STL, the fix is just to use an ostringstream to build it up. At some point that line really has to be crossed in a C++ library. > Build failure with Windows and VS2013 > - > > Key: XERCESC-2111 > URL: https://issues.apache.org/jira/browse/XERCESC-2111 > Project: Xerces-C++ > Issue Type: Bug > Components: Build >Affects Versions: 3.2.0 > Environment: Windows Server 2008R2 with Visual Studio 2013 >Reporter: Roger Leigh >Assignee: Scott Cantor > Fix For: 3.2.0 > > > snprintf isn't available before VS2015, though a Microsoft-specific variant > is available which we could use conditionally. However, even this is not > present in earlier Visual Studio releases. Do we strictly need to use > snprintf here? If we do, how far back do our Visual Studio portability > requirements go? > {{{ > 17:53:44 FAILED: C:\PROGRA~2\MICROS~3.0\VC\bin\amd64\cl.exe /nologo /TP > -DHAVE_CONFIG_H=1 -DXERCES_BUILDING_LIBRARY=1 > -DXERCES_DLL_NAME=\"xerces-c_3_2.dll\0\" -D_THREAD_SAFE=1 -Dxerces_c_EXPORTS > -I. > -ID:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src > -Isrc > -ID:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\stage\include > /DWIN32 /D_WINDOWS /W3 /GR /EHsc /W3 /MD /O2 /Ob2 /DNDEBUG /showIncludes > /Fosrc\CMakeFiles\xerces-c.dir\xercesc\util\XMLDateTime.cpp.obj > /Fdsrc\CMakeFiles\xerces-c.dir\ /FS -c > D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src\xercesc\util\XMLDateTime.cpp > 17:53:44 > D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src\xercesc\util\XMLDateTime.cpp(471) > : warning C4244: 'initializing' : conversion from 'time_t' to 'unsigned > long', possible loss of data > 17:53:44 > D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src\xercesc\util\XMLDateTime.cpp(473) > : warning C4244: 'initializing' : conversion from 'time_t' to 'unsigned > long', possible loss of data > 17:53:44 > D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src\xercesc\util\XMLDateTime.cpp(475) > : warning C4244: 'initializing' : conversion from 'time_t' to 'unsigned > long', possible loss of data > 17:53:44 > D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src\xercesc\util\XMLDateTime.cpp(477) > : warning C4244: 'initializing' : conversion from 'time_t' to 'unsigned > long', possible loss of data > 17:53:44 > D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src\xercesc\util\XMLDateTime.cpp(480) > : error C3861: 'snprintf': identifier not found > }}} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org For additional commands, e-mail: c-dev-h...@xerces.apache.org
[jira] [Commented] (XERCESC-2111) Build failure with Windows and VS2013
[ https://issues.apache.org/jira/browse/XERCESC-2111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16115858#comment-16115858 ] Scott Cantor commented on XERCESC-2111: --- Ugh, that's a pain. Originally it used iostreams. I really didn't want to have to allocate and append everything piecemeal but I suppose that's my only choice if we keep this "no STL" policy. > Build failure with Windows and VS2013 > - > > Key: XERCESC-2111 > URL: https://issues.apache.org/jira/browse/XERCESC-2111 > Project: Xerces-C++ > Issue Type: Bug > Components: Build >Affects Versions: 3.2.0 > Environment: Windows Server 2008R2 with Visual Studio 2013 >Reporter: Roger Leigh > Fix For: 3.2.0 > > > snprintf isn't available before VS2015, though a Microsoft-specific variant > is available which we could use conditionally. However, even this is not > present in earlier Visual Studio releases. Do we strictly need to use > snprintf here? If we do, how far back do our Visual Studio portability > requirements go? > {{{ > 17:53:44 FAILED: C:\PROGRA~2\MICROS~3.0\VC\bin\amd64\cl.exe /nologo /TP > -DHAVE_CONFIG_H=1 -DXERCES_BUILDING_LIBRARY=1 > -DXERCES_DLL_NAME=\"xerces-c_3_2.dll\0\" -D_THREAD_SAFE=1 -Dxerces_c_EXPORTS > -I. > -ID:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src > -Isrc > -ID:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\stage\include > /DWIN32 /D_WINDOWS /W3 /GR /EHsc /W3 /MD /O2 /Ob2 /DNDEBUG /showIncludes > /Fosrc\CMakeFiles\xerces-c.dir\xercesc\util\XMLDateTime.cpp.obj > /Fdsrc\CMakeFiles\xerces-c.dir\ /FS -c > D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src\xercesc\util\XMLDateTime.cpp > 17:53:44 > D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src\xercesc\util\XMLDateTime.cpp(471) > : warning C4244: 'initializing' : conversion from 'time_t' to 'unsigned > long', possible loss of data > 17:53:44 > D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src\xercesc\util\XMLDateTime.cpp(473) > : warning C4244: 'initializing' : conversion from 'time_t' to 'unsigned > long', possible loss of data > 17:53:44 > D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src\xercesc\util\XMLDateTime.cpp(475) > : warning C4244: 'initializing' : conversion from 'time_t' to 'unsigned > long', possible loss of data > 17:53:44 > D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src\xercesc\util\XMLDateTime.cpp(477) > : warning C4244: 'initializing' : conversion from 'time_t' to 'unsigned > long', possible loss of data > 17:53:44 > D:\build\OME-FILES-CPP-DEV-merge-win-superbuild\2a8f6256\build\xerces-source\src\xercesc\util\XMLDateTime.cpp(480) > : error C3861: 'snprintf': identifier not found > }}} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org For additional commands, e-mail: c-dev-h...@xerces.apache.org