简体   繁体   中英

error: wx/setup.h: No such file or directory wxWidgets on CodeBlocks

I have started to create an application via codeblocks using wxWidgets-3.0.2 but when I finish creating my interface, it cannot be run

Error log:

C:\\wxWidgets-3.0.2\\include/wx/platform.h:183:22: error: wx/setup.h: No such file or directory

C:\\wxWidgets-3.0.2\\include/wx/chkconf.h:88:9: error: #error "wxUSE_ANY must be defined, please read comment near the top of this file."

C:\\wxWidgets-3.0.2\\include/wx/chkconf.h:96:9: error: #error "wxUSE_COMPILER_TLS must be defined, please read comment near the top of this file."

C:\\wxWidgets-3.0.2\\include/wx/chkconf.h:104:9: error: #error "wxUSE_CONSOLE_EVENTLOOP must be defined, please read comment near the top of this file."

C:\\wxWidgets-3.0.2\\include/wx/chkconf.h:112:9: error: #error "wxUSE_DYNLIB_CLASS must be defined, please read comment near the top of this file."

截图日志

I think that's because the following cmd command does not work on the cmd prompt:

mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=1 UNICODE=1 BUILD=release

您可以从https://github.com/wxWidgets/wxWidgets/releases下载预构建的二进制文件,而不是尝试自己构建库

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM