|
发表于 2005-2-20 22:21:28
|
显示全部楼层
我在编译wxgtk时
./configure 发生错误,提示找不到gtk-config,和gtk+的路径不对,大概就是这个意思。
实用文档中的方法,我采用
> ./configure --with-gtk --enable-gtk2 --enable-unicode
> make
> su <type root password>
> make install
安装成功
接下来的chmlib也没有问题,但是在安装xchm时出现错误,
chmapp.o(.text+0xaf5): In function `CHMApp::OnInit()':
: undefined reference to `wxSize::wxSize(int, int)'
chmapp.o(.gnu.linkonce.t._ZN8wxStringD1Ev+0xd): In function `wxString::~wxString()':
: undefined reference to `wxStringBase::~wxStringBase()'
chmapp.o(.gnu.linkonce.t._ZN6CHMAppC1Ev+0x29): In function `CHMApp::CHMApp()':
: undefined reference to `wxLocale::wxLocale()'
chmapp.o(.gnu.linkonce.t._ZN6CHMAppC1Ev+0x3b): In function `CHMApp::CHMApp()':
: undefined reference to `wxCmdLineParser::wxCmdLineParser()'
chmapp.o(.gnu.linkonce.t._ZNK9wxAppBase12GetTopWindowEv+0x23): In function `wxAppBase::GetTopWindow() const':
: undefined reference to `wxListBase::GetCount() const'
chmapp.o(.gnu.linkonce.t._ZNK9wxAppBase12GetTopWindowEv+0x37): In function。
。。。。
: undefined reference to `wxObject::~wxObject()'
collect2: ld returned 1 exit status
make[2]: *** [xchm] 错误 1
make[1]: *** [all-recursive] 错误 1
make: *** [all] 错误 2
~
请问这是什么原因?
怎么这么多编译错误呢? |
|