Qt/QuickFIX - 找不到一些头文件

发布于 2024-08-25 12:34:31 字数 396 浏览 5 评论 0原文

我正在使用 Qt Framework 和 QuickFIX 引擎来创建带有 GUI 的财务应用程序。 我的问题是,当我编译一个实现 QickFIX 引擎和 Qt Framework 的程序时,它给了我一个编译错误:它在 MinGW 中找不到一些头文件(socket.hinet /in.h 等)

我在 Windows 7 上,我知道要使用套接字,您必须使用 winsock.h 等,但问题是我有 Visual C++ Express 版本而且Qt不支持它,所以我使用了Qt Creator,并且由于我有Qt的开源,QuickFIX引擎使用Linux的头文件(socket.h等)而不是Windows。所以它给了我一个错误。 请问您能给我建议一个解决方案吗?

I am using both Qt Framework and QuickFIX engine to create a financial application with GUI.
My problem is that when I compile a program that implements QickFIX engine and Qt Framework, it gives me a compilation error: it doesn't find some header files in MinGW (socket.h, inet/in.h, etc)

I am on Windows 7 and I know that to use sockets you must use winsock.h and so on, but the problem is I have Visual C++ express edition and it's not supported by Qt, so I used Qt Creator and since I have an open source of Qt, QuickFIX engine uses the header files of Linux (socket.h, etc) rather than windows. So it gave me an error.
Please can you suggest me a solution?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

找个人就嫁了吧 2024-09-01 12:34:44

我将 Visual Studio Express 2010 与 Qt 结合使用。您需要用它来构建 Qt。配置时,请确保将 Visual Studio 2010 指定为 make 规范。

上次我构建它时,它被几个项目挂断了。为了解决这个问题,您需要清除诺基亚出于某种原因打包在安装程序中的一些临时文件。只需谷歌一下错误即可获取详细信息。

一旦你构建了 Qt,你应该能够 qmake -tp vc 你的项目,然后加载生成的 Visual Studio 项目文件。

I use Visual Studio Express 2010 with Qt. You will need to build Qt with it. When you configure make sure to specify Visual Studio 2010 as the make spec.

Last time I built it got hung up on a couple of projects. To get around this you need to clear out some temporary files that Nokia packaged in the installer for some reason. Just google the error for details.

Once you have Qt built you ought to be able to qmake -tp vc your project and then load up the generated Visual Studio project file.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文