链接正确对wxWidgets [英] link correctly against wxWidgets

查看:227
本文介绍了链接正确对wxWidgets的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,
最近我下载了最新版本的wxPack(wxWidgets3.0.0)的C ++,并安装它。现在我想在我的程序中使用它,我包括在库的基本目录中的包括路径,并将gcc48_lib目录添加到库目录。然而,我不知道哪个库链接为了得到我的对话框与一个单一的按钮显示。 ive尝试了两个 libwxmsw30u libwxmsw30u_core ,和两个我得到链接错误,这里是几个未定义的引用wxWidget组件几个类方法。我已经尝试在谷歌搜索这一点,但我得到的是如何构建实际的wxWidgets源代码,而不是如何链接到它的教程,所以,没有有价值的信息。任何帮助将非常感激。

So, recently i downloaded the newest version of wxPack (wxWidgets3.0.0) for C++, and installed it. now that i want to use it in my program, i included the "include" path inside the library's base directory, and added the gcc48_lib directory to the library directories. however, i dont quite get which library to link against in order to get my dialog with a single button displayed. ive tried both libwxmsw30u and libwxmsw30u_core, and with both i get linking errors, here being several undefined references to wxWidget components like several class methods. i already tried searching for this on google, but all i get are tutorials on how to build the actual wxWidgets source code, not how to link against it, so, no valuable information there. any help will be greatly appreciated.

推荐答案

链接的必要库在此wxWidgets页面

如您所见, wxBase libwxbase30u 在你的情况下)总是需要,然后 wxCore GUI东西。

As you can see, wxBase (libwxbase30u in your case) is needed always, then wxCore for all GUI stuff. The rest is used by certain components only, again described on that page.

还有一些辅助库,例如 libwxzlib libwxpngd ,但是这些应该很容易通过丢失符号的名称或它们相关的功能(压缩,PNG图像...)来确定。

There also some other auxiliary libraries like libwxzlib or libwxpngd, but those should be fairly easy to determine by the names of the missing symbols or their associated functionality you are using (compression, PNG images, ...).

这篇关于链接正确对wxWidgets的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆