with VS 2017.
I have built the libraries using nmake with the VS2017 command prompt ( configuration static, release, x64 )
I then tried to build the minimal sample also with nmake, worked without problems.
But when I try to build the hello world from the visual studio IDE ( linker directories and include directories set properly ).
I get 86 errors and it won compile ( even the minimal sample project will not compile when using the IDE ).
(I also used the same configuration for those projects in the IDE as I used to build the libraries of wxWidgets ( Release x64 ).
Because I want to integrate this into an existing project, I would prefer to be able to compile it using the vs2017 IDE.
I searched a long time for a solution and now I am asking here.
Are there some additional preprocessor options I need to set? Or are there additional includes, libs needed?
Thanks in advance.
Edit: I am using version 3.0.4 ( latest stable ) but it appears that my setup.h is missing some defines, at least some errors tell me this,
but the comment tells me, that this can only happen if I happened to get partial releases with git or svn, which is not the case.
Edit2:
Those are the errors, all related to an inconsistend setup.h
Code: Select all
Schweregrad Code Beschreibung Projekt Datei Zeile Unterdrückungszustand
Fehler (aktiv) E0035 #error-Direktive: "wxUSE_XML must be defined, please read comment near the top of this file." ConsoleApplication1 c:\Users\mweber\Downloads\wxWidgets304installed\include\wx\chkconf.h 290
Fehler (aktiv) E0035 #error-Direktive: "wxUSE_XLOCALE must be defined, please read comment near the top of this file." ConsoleApplication1 c:\Users\mweber\Downloads\wxWidgets304installed\include\wx\chkconf.h 378
Fehler (aktiv) E0035 #error-Direktive: "wxUSE_VARIANT must be defined, please read comment near the top of this file." ConsoleApplication1 c:\Users\mweber\Downloads\wxWidgets304installed\include\wx\chkconf.h 370
Fehler (aktiv) E0035 #error-Direktive: "wxUSE_URL must be defined, please read comment near the top of this file." ConsoleApplication1 c:\Users\mweber\Downloads\wxWidgets304installed\include\wx\chkconf.h 362
Fehler (aktiv) E0035 #error-Direktive: "wxUSE_TEXTFILE must be defined, please read comment near the top of this file." ConsoleApplication1 c:\Users\mweber\Downloads\wxWidgets304installed\include\wx\chkconf.h 346
Fehler (aktiv) E0035 #error-Direktive: "wxUSE_TEXTBUFFER must be defined, please read comment near the top of this file." ConsoleApplication1 c:\Users\mweber\Downloads\wxWidgets304installed\include\wx\chkconf.h 338
Fehler (aktiv) E0035 #error-Direktive: "wxUSE_STREAMS must be defined, please read comment near the top of this file." ConsoleApplication1 c:\Users\mweber\Downloads\wxWidgets304installed\include\wx\chkconf.h 322
Fehler (aktiv) E0035 #error-Direktive: "wxUSE_STOPWATCH must be defined, please read comment near the top of this file." ConsoleApplication1 c:\Users\mweber\Downloads\wxWidgets304installed\include\wx\chkconf.h 330
Fehler (aktiv) E0035 #error-Direktive: "wxUSE_STD_STRING_CONV_IN_WXSTRING must be defined, please read comment near the top of this file." ConsoleApplication1 c:\Users\mweber\Downloads\wxWidgets304installed\include\wx\chkconf.h 314
Fehler (aktiv) E0035 #error-Direktive: "wxUSE_STD_CONTAINERS must be defined, please read comment near the top of this file." ConsoleApplication1 c:\Users\mweber\Downloads\wxWidgets304installed\include\wx\chkconf.h 306
Fehler (aktiv) E0035 #error-Direktive: "wxUSE_STDPATHS must be defined, please read comment near the top of this file." ConsoleApplication1 c:\Users\mweber\Downloads\wxWidgets304installed\include\wx\chkconf.h 282
Fehler (aktiv) E0035 #error-Direktive: "wxUSE_SOCKETS must be defined, please read comment near the top of this file." ConsoleApplication1 c:\Users\mweber\Downloads\wxWidgets304installed\include\wx\chkconf.h 298
Fehler (aktiv) E0035 #error-Direktive: "wxUSE_REGEX must be defined, please read comment near the top of this file." ConsoleApplication1 c:\Users\mweber\Downloads\wxWidgets304installed\include\wx\chkconf.h 274
Fehler (aktiv) E0035 #error-Direktive: "wxUSE_PROTOCOL must be defined, please read comment near the top of this file." ConsoleApplication1 c:\Users\mweber\Downloads\wxWidgets304installed\include\wx\chkconf.h 232
Fehler (aktiv) E0035 #error-Direktive: "wxUSE_PRINTF_POS_PARAMS must be defined, please read comment near the top of this file." ConsoleApplication1 c:\Users\mweber\Downloads\wxWidgets304installed\include\wx\chkconf.h 224
Fehler (aktiv) E0035 #error-Direktive: "wxUSE_ON_FATAL_EXCEPTION must be defined, please read comment near the top of this file." ConsoleApplication1 c:\Users\mweber\Downloads\wxWidgets304installed\include\wx\chkconf.h 216
Fehler (aktiv) E0035 #error-Direktive: "wxUSE_MIMETYPE must be defined, please read comment near the top of this file." ConsoleApplication1 c:\Users\mweber\Downloads\wxWidgets304installed\include\wx\chkconf.h 208
Fehler (aktiv) E0035 #error-Direktive: "wxUSE_LONGLONG must be defined, please read comment near the top of this file." ConsoleApplication1 c:\Users\mweber\Downloads\wxWidgets304installed\include\wx\chkconf.h 200
Fehler (aktiv) E0035 #error-Direktive: "wxUSE_LOG must be defined, please read comment near the top of this file." ConsoleApplication1 c:\Users\mweber\Downloads\wxWidgets304installed\include\wx\chkconf.h 192
Fehler (aktiv) E0035 #error-Direktive: "wxUSE_IPV6 must be defined, please read comment near the top of this file." ConsoleApplication1 c:\Users\mweber\Downloads\wxWidgets304installed\include\wx\chkconf.h 184
Fehler (aktiv) E0035 #error-Direktive: "wxUSE_INTL must be defined, please read comment near the top of this file." ConsoleApplication1 c:\Users\mweber\Downloads\wxWidgets304installed\include\wx\chkconf.h 176
Fehler (aktiv) E0035 #error-Direktive: "wxUSE_FS_ARCHIVE must be defined, please read comment near the top of this file." ConsoleApplication1 c:\Users\mweber\Downloads\wxWidgets304installed\include\wx\chkconf.h 144
Fehler (aktiv) E0035 #error-Direktive: "wxUSE_FSWATCHER must be defined, please read comment near the top of this file." ConsoleApplication1 c:\Users\mweber\Downloads\wxWidgets304installed\include\wx\chkconf.h 160
Fehler (aktiv) E0035 #error-Direktive: "wxUSE_FSVOLUME must be defined, please read comment near the top of this file." ConsoleApplication1 c:\Users\mweber\Downloads\wxWidgets304installed\include\wx\chkconf.h 152
Fehler (aktiv) E0035 #error-Direktive: "wxUSE_FILE_HISTORY must be defined, please read comment near the top of this file." ConsoleApplication1 c:\Users\mweber\Downloads\wxWidgets304installed\include\wx\chkconf.h 128
Fehler (aktiv) E0035 #error-Direktive: "wxUSE_FILESYSTEM must be defined, please read comment near the top of this file." ConsoleApplication1 c:\Users\mweber\Downloads\wxWidgets304installed\include\wx\chkconf.h 136
Fehler (aktiv) E0035 #error-Direktive: "wxUSE_EXCEPTIONS must be defined, please read comment near the top of this file." ConsoleApplication1 c:\Users\mweber\Downloads\wxWidgets304installed\include\wx\chkconf.h 120
Fehler (aktiv) E0035 #error-Direktive: "wxUSE_DYNLIB_CLASS must be defined, please read comment near the top of this file." ConsoleApplication1 c:\Users\mweber\Downloads\wxWidgets304installed\include\wx\chkconf.h 112
Fehler (aktiv) E0035 #error-Direktive: "wxUSE_DYNAMIC_LOADER must be defined, please read comment near the top of this file." ConsoleApplication1 c:\Users\mweber\Downloads\wxWidgets304installed\include\wx\chkconf.h 168
Fehler (aktiv) E0035 #error-Direktive: "wxUSE_CONSOLE_EVENTLOOP must be defined, please read comment near the top of this file." ConsoleApplication1 c:\Users\mweber\Downloads\wxWidgets304installed\include\wx\chkconf.h 104
Fehler (aktiv) E0035 #error-Direktive: "wxUSE_COMPILER_TLS must be defined, please read comment near the top of this file." ConsoleApplication1 c:\Users\mweber\Downloads\wxWidgets304installed\include\wx\chkconf.h 96
Fehler (aktiv) E0035 #error-Direktive: "wxUSE_ANY must be defined, please read comment near the top of this file." ConsoleApplication1 c:\Users\mweber\Downloads\wxWidgets304installed\include\wx\chkconf.h 88