是否可以只使用一个 Qt 模块,就像第 3 方 dll 一样?
我一直在寻找一个可以在 Windows 下运行的 C++ 数据库访问库。我尝试过
- SOCI:不编译
- SQLAPI++:不免费
下一个选项是使用 Qt 的数据库访问模块 QtSql。
是否可以仅使用 QtSql 而无需导入或链接任何其他 Qt 内容?
I'd been looking for a DB access library for C++ which will run under Windows. I tried
- SOCI: does not compile
- SQLAPI++: not free
Next option was to use Qt's DB access module, QtSql.
Is it possible only to use QtSql without importing or linking any other Qt stuff?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,您只能针对 Qt Dll 的一部分进行编译。但我想在所有情况下你也必须针对 QtCore 进行构建。
所以你的 .pro 文件应该有
Yes you can compile against only a part of the Qt Dlls. But I guess in all cases you have to build against QtCore too.
So your .pro file should have