Ubuntu 编译WxWidgets项目时的警告

Ubuntu 编译WxWidgets项目时的警告,ubuntu,wxwidgets,Ubuntu,Wxwidgets,在编译WxWidgets程序时,我有这样的警告: 16:42:29: Warning: Mismatch between the program and library build versions detected. The library used 3.0 (wchar_t,compiler with C++ ABI 1009,wx containers,compatible with 2.8), and your program used 3.0 (wchar_t,compiler wit

在编译WxWidgets程序时,我有这样的警告:

16:42:29: Warning: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1009,wx containers,compatible with 2.8),
and your program used 3.0 (wchar_t,compiler with C++ ABI 1010,wx containers,compatible with 2.8).

我在其他位置有WxWidgets 3.0。是否可以将库位置设置到其他位置?

请检查您是否有相同的编译器选项集来编译库和应用程序。错误给出了一个提示-不同的ABI。我为链接器编写了
wx config--libs
,为编译器编写了
wx config--cxflags
。但是,如何在不同的位置设置更高版本?您在构建库时的具体配置行以及在编译项目时的具体配置行是什么?另外,你能从wxWidgets中构建
最小的
示例吗?因为你的系统中有两个或更多的wxWidgets库,它们的版本不同,我建议你手动将库和头文件添加到你的项目中,而不是
wx config
这是针对代码块的;然而,大多数IDE都遵循类似的原理。