c++ - 错误 : wx/setup. h:CodeBlocks 上没有这样的文件或目录 wxWidgets

标签 c++ c codeblocks wxwidgets mingw32

我已经开始使用 wxWidgets-3.0.2 通过代码块创建应用程序 但是当我完成创建我的界面时,它无法运行

错误日志:

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."

Screenshot log

我认为这是因为以下 cmd 命令在 cmd 提示符下不起作用:

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

最佳答案

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

关于c++ - 错误 : wx/setup. h:CodeBlocks 上没有这样的文件或目录 wxWidgets,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33683833/

相关文章:

c - strncpy 的问题以及如何修复它

c - 为什么我在这个字符中得到这个十进制整数?

Code::Blocks + MinGW:最小化静态库的大小

c++ - 如何包含不带引号的头文件?

c# - const uint8* 的 C++ 到 C# 转换

c++ - 如何使用二维数组在 C++ AMP 中声明 array_view 或数组对象

c++ - C++ 中的智能引用

c - scanf() 将换行符保留在缓冲区中

c - 函数 C 错误、类型不兼容和段错误核心转储

c++ - 关于结构初始化语法错综复杂的问题