Hello,
I'm getting compile errors building version 3.0.2 with Visual Studio 2015 on Windows 7.
C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt\stdio.h(1927): fatal error C1189: #error: Macro definition of snprintf conflicts with Standard Library function declaration
Anyway to get around this error?
Thanks.
Building Using Visual Studio 2015
Re: Building Using Visual Studio 2015
This has been long fixed in the master as well as in the 3.0 branch so you either need to update your wxWidgets or apply the fixes manually:
https://github.com/wxWidgets/wxWidgets/ ... 6aaf3063fc
https://github.com/wxWidgets/wxWidgets/ ... 83d2e1eb69
https://github.com/wxWidgets/wxWidgets/ ... 6aaf3063fc
https://github.com/wxWidgets/wxWidgets/ ... 83d2e1eb69
Re: Building Using Visual Studio 2015
Thank you, that worked.
Do you have any documentation for building using CMake.
I had no problems building our application using CMake with Visual Studio 2010 but
now with Visual Studio 2015, it tells me it could not create named generator Visual
Studio 2015 Win64.
Thanks.
Do you have any documentation for building using CMake.
I had no problems building our application using CMake with Visual Studio 2010 but
now with Visual Studio 2015, it tells me it could not create named generator Visual
Studio 2015 Win64.
Thanks.
Re: Building Using Visual Studio 2015
Disclaimer: I have only started playing with CMake just this week.
I have compiled wxWidgets master branch head with MSVC 2015 (Express for Desktop) in 64-bit mode with
When I tried to create a project for my library with CMake-GUI 3.7.2 for "Visual Studio 14 2015 Win64" I also ended up with an error:
Perhaps you need to do something similar, the error message (and log) provided by CMake should give you a hint.
I have compiled wxWidgets master branch head with MSVC 2015 (Express for Desktop) in 64-bit mode with
Please notice that I am using a custom COMPILER_PREFIX as have MSVC 2008 libs in my vc_* folders and MSVC 2015 x86 libs in vc14_* folders.call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\vcvarsx86_amd64.bat"
set VisualStudioVersion=14.0
cd %WXWIN%\build\MSW
nmake -f makefile.vc BUILD=debug COMPILER_PREFIX=vc14_x64
When I tried to create a project for my library with CMake-GUI 3.7.2 for "Visual Studio 14 2015 Win64" I also ended up with an error:
From the error message it seemed obvious that CMake could not find wxWidgets which is understandable as I used a custom folder name for the libraries. So what I needed to make it work was to change the wxWidgets_LIBRARY_FOLDER variable in the CMake-GUI to my actual wxWidgets library folder.The C compiler identification is MSVC 19.0.24210.0
The CXX compiler identification is MSVC 19.0.24210.0
Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Detecting CXX compile features
Detecting CXX compile features - done
CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES
wxWidgets_INCLUDE_DIRS)
Call Stack (most recent call first):
C:/Program Files (x86)/CMake/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files (x86)/CMake/share/cmake-3.7/Modules/FindwxWidgets.cmake:929 (find_package_handle_standard_args)
CMakeLists.txt:10 (find_package)
Configuring incomplete, errors occurred!
See also "C:/Dev/Desktop/wxAutoExcel-build-vc14x64/CMakeFiles/CMakeOutput.log".
Perhaps you need to do something similar, the error message (and log) provided by CMake should give you a hint.