尝试在 Code::Blocks 中编译 wxWidgets 示例时,出现以下错误:
||=== Build: Debug in wx3 (compiler: GNU GCC Compiler) ===|
ld.exe||cannot find -lwxmsw31d_core|
ld.exe||cannot find -lwxbase31d|
ld.exe||cannot find -lwxpngd|
ld.exe||cannot find -lwxzlibd|
||error: ld returned 1 exit status|
||=== Build failed: 5 error(s), 0 warning(s) (0 minute(s), 3 second(s)) ===|
我已经设置编译器在这些目录中搜索:
%pathtolibrary%\wxWidgets-3.1.5
和%pathtolibrary%\wxWidgets-3.1.5\lib\gcc_dll\msw
此外,当我删除第二条路径时,出现找不到 setup.h
的错误。
感谢所有回答。