【发布时间】:2012-09-12 17:18:59
【问题描述】:
我将源下载到最新的 wx 并成功编译,没有任何问题。
配置为:
../configure --enable-optimise --enable-stl --enable-unicode --enable-threads --enable-static --disable-shared --prefix=/usr/local
当我尝试编译 this 示例时:
g++-4.8 `wx-config --libs` `wx-config --cxxflags` test.cpp
我得到了很多未定义的引用(完整列表 here)
我怎样才能做到这一点?
【问题讨论】:
-
你能测试一下吗?:g++
wx-config --cppflagswx-config --libstest.cpp -
同样的错误(我添加了需要的`,没有它就不行)
-
如果你在 linux 中,你的链接器有问题,确保你之前安装了 wx 库,用 wx --version 测试它。回想一下,您必须将库添加到 LD_LIBRARY 以配置动态链接器。
-
我按照那个教程,同样的错误