C::B +wxWidget 编译aui范例报错哇 Topic is solved

这是wxWidgets论坛的中文版本。在这里,您可以用您的母语汉语讨论上面任一子论坛所涉及的所有关于wxWidgets的话题。欢迎大家参与到对有价值的帖子的中英互译工作中来!
Post Reply
secondsen
Earned a small fee
Earned a small fee
Posts: 18
Joined: Tue Apr 02, 2013 4:14 pm

C::B +wxWidget 编译aui范例报错哇

Post by secondsen » Tue Apr 02, 2013 4:21 pm

我用Code::Blocks新建项目,选wxwidget,然后把范例目录下 auiDemo.cpp放到工程文件夹下,闭关添加到工程中,但是编译就报错。

报错内容如图。Image

这是为什么啊?

求教。
谢谢。

fancyivan
Experienced Solver
Experienced Solver
Posts: 80
Joined: Wed May 26, 2010 8:42 am
Location: Beijing, China
Contact:

Re: C::B +wxWidget 编译aui范例报错哇

Post by fancyivan » Wed Apr 03, 2013 2:38 am

你都引用了哪些库?不够全吧。引用库时还要注意顺序问题。
OS: Win7 Ultimate SP1 x64(Windows XP Pro SP3 in VirtualBox)
Compiler: MinGW32 (gcc4.8.1 + gdb7.6.1)
IDE: Code::Blocks 12.11
Lib: wxWidgets3.0.0

secondsen
Earned a small fee
Earned a small fee
Posts: 18
Joined: Tue Apr 02, 2013 4:14 pm

Re: C::B +wxWidget 编译aui范例报错哇

Post by secondsen » Sun Apr 07, 2013 1:12 pm

我直接把范例的cpp放到工程里的啊....范例的错了??。。。这个情况能够判断出来少了什么吗?

非常感谢!!!!

secondsen
Earned a small fee
Earned a small fee
Posts: 18
Joined: Tue Apr 02, 2013 4:14 pm

Re: C::B +wxWidget 编译aui范例报错哇

Post by secondsen » Sun Apr 07, 2013 3:25 pm

我将库文件的顺序改变了,报错就不同了,但是仍然是 undefined reference XXXXX

那么正确的引用顺序应该是什么呢??

我找到了,

http://docs.wxwidgets.org/2.8/wx_librar ... rarieslist

按照这个排列库的顺序果真没有问题的。。aui放在所有库的最前面 :lol:

非常感谢LSS的解答!!!! :D

Post Reply