wxWidgets 绝对致命的痛苦
我以前从未使用过 wxWidgets,我很想尝试一下,但我在开始使用时遇到了一百万个问题。
我在 Visual Studio 2010 上使用 wxWidgets 2.9.1。我已经通过批量构建来构建每个配置中的每个项目。
我已将包含和库引用添加到我的项目中。
当我尝试编译简单的“Hello, World!”时程序时,我收到此错误:
Error 1 error C1083: Cannot open include file: '../../../lib/vc_lib/msw/wx/setup.h': No such file or directory
我检查了 lib/vc_lib 文件夹,确实没有找到“msw”文件夹。只有“mswu”、“mswud”、“mswunivu”和“mswunivd”。
有人知道发生了什么事吗? :/
I've never used wxWidgets before, and I'd love to try it out, but I've run into a million problems getting started.
I am using wxWidgets 2.9.1 on Visual Studio 2010. I've gone through the batch build to build every project in every configuration.
I've added the includes and lib references to my project.
When I try to compile the simple "Hello, World!" program, I get this error:
Error 1 error C1083: Cannot open include file: '../../../lib/vc_lib/msw/wx/setup.h': No such file or directory
I checked my lib/vc_lib folder, and indeed, there was no "msw" folder to be found. There were only "mswu", "mswud", "mswunivu" and "mswunivd".
Anyone know what's going on? :/
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您必须根据 setupin.h (或类似的,不记得了)模板文件自行创建该文件。请参阅http://wiki.wxwidgets.org/Setup.H。
但我同意上面Noah的回复:过去五年我写了一个大型的商业wx应用程序,我再也不会选择wx了。有太多的错误、太多的功能遗漏、缓慢的修补过程以及代码中太多的缺陷。既然 Qt 拥有可接受的许可证,我会认真考虑将其作为替代方案......
You have to create that file yourself from a setupin.h (or similar, can't remember) template file. See http://wiki.wxwidgets.org/Setup.H.
But I agree with Noah's reply above: I have written a large commercial wx application over the last five years and I'd never choose wx again. There are just too many bugs, too many feature omissions, a slow patching process and too much cruft in the code. Now that Qt has an acceptable license I'd seriously consider that as an alternative...
阅读第一条评论,它给出了更好的答案。
Read the first comment, it gives a better answer.
现在,我使用的是wxwidgets v3.2.1
我遇到了同样的问题,但我在 wxwidgets 论坛上发现我应该将 setup.h 文件从
/wxwidgets/build/msw/setup.h
移动到/wxwidgets/include/ 文件夹。
在 Windows 上设置 wxwidgets 对我来说有点头疼。与 Windows 相比,Linux 上的设置很容易。你不用做太多的努力。
Right now, I am using wxwidgets v3.2.1
Same problem I was facing, but I found on wxwidgets forum that I should move a setup.h file from
/wxwidgets/build/msw/setup.h
to/wxwidgets/include/
folder.Doing setup wxwidgets on Windows was little bit headache for me. Compare to windows, Setup on Linux is easy. You don't have do much effort.
首先,您可能会重新考虑 WX。我使用了它,投入了大量的时间和代码开发基于它的产品,但事实证明它并不那么热门。
您遇到的问题可能是由于没有打开 unicode 标志而只有 unicode 版本。显然无论如何。因此,进入您的属性并将字符集更改为 unicode。它位于常规属性页面上。
First off, you might reconsider WX. I used it, invested a lot of time and code into products based on it, and it just turned out to be not so hot.
The problem you're having is probably due to not having the unicode flags turned on but only having the unicode version. Apparently anyway. So go into your properties and change the character set to unicode. It's on the general properties page.