简体   繁体   English

Windows中的Qt Creator-如何知道使用哪个编译器?

[英]Qt Creator in Windows - How do I know which compiler is being used?

I'm running Qt Creator 3.1.1 in Windows. 我正在Windows中运行Qt Creator 3.1.1。 I have an existing Qt project and I'm trying to add the Boost library to it. 我有一个现有的Qt项目,正在尝试向其中添加Boost库。 I think I have the .pro file configured to correctly point to the .lib and .hpp folders. 我认为我已将.pro文件配置为正确指向.lib和.hpp文件夹。 However, I still get a linking error when I compile: "LNK2019: unresolved external symbol". 但是,编译时仍然出现链接错误:“ LNK2019:无法解析的外部符号”。

From other things I've read, it looks like I need to make sure that my Boost was compiled with the same compiler I'm using to compile my Qt projects. 从我读过的其他内容来看,似乎需要确保Boost是使用与编译Qt项目相同的编译器进行编译的。

Here's the Boost build I installed: http://boost.teeks99.com/bin/1.55.0/boost_1_55_0-msvc-12.0-64.exe 这是我安装的Boost版本: http : //boost.teeks99.com/bin/1.55​​.0/boost_1_55_0-msvc-12.0-64.exe

Here's a screenshot of my Qt Creator About window: 这是我的Qt Creator关于窗口的屏幕截图: 在此处输入图片说明

And here's a screenshot of my Qt Creator compiler options: 这是我的Qt Creator编译器选项的屏幕截图: 在此处输入图片说明

How can I tell which compiler I'm using? 我怎么知道我正在使用哪个编译器? It lists a whole bunch, but isn't very clear about which one is actually used. 它列出了一大堆,但不清楚实际使用哪个。 Also, please let me know if this could be a simple 64 vs 32 bit problem. 另外,请告诉我这是否可能是一个简单的64位与32位问题。

You're looking at the QtCreator settings -- what you want is your project settings . 您正在查看QtCreator设置-您想要的是项目设置 In the left sidebar, click Projects. 在左侧边栏中,单击“项目”。

At the top of the project pane, the selected build options for the current target appear in a little box at the top. 在项目窗格的顶部,当前目标的选定构建选项显示在顶部的小框中。 Hover your mouse cursor over the down arrow for the compiler and debugger details, you'll see something like this: 将鼠标悬停在向下箭头上以获取编译器和调试器的详细信息,您将看到类似以下内容:

在此处输入图片说明

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

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