简体   繁体   English

有没有办法结合Qt-Creator + Boost Library?

[英]is there a way to combine Qt-Creator + Boost Library?

I was wondering if there was a way to use the boost library in Qt-creator (the IDE version of Qt). 我想知道是否有办法在Qt-creator(Qt的IDE版本)中使用boost库。

Thanks, A. 谢谢。

I'm pretty sure Qt Creator doesn't require the use of Qt in your application. 我很确定Qt Creator不需要在你的应用程序中使用Qt。 If you don't want to link to any Qt libraries, or run MOC on any header files (which you only need to do for subclasses of QObject), then just do QT -= core gui (to get rid of Qt libraries from the link command. Perhaps QT = would work, too), and don't specify any HEADERS . 如果您不想链接到任何Qt库,或者在任何头文件上运行MOC(您只需要为QObject的子类执行),那么只需执行QT -= core gui (从中删除Qt库)链接命令。也许QT =也可以工作),并且不指定任何HEADERS

Good luck, post back if it works. 祝你好运,如果有效,请回复。

Boost is not just one library, it's a collection of them. Boost不仅仅是一个库,它是它们的集合。 Some are just header files, in those cases you just need to #include them in your source as normal. 有些只是头文件,在这种情况下,您只需要在源代码中正常#include它们。 Which Boost functionality do you require? 您需要哪种Boost功能?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM