久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

在 Qt、QtCreator 和 QMake 中配置 GCC 編譯器開關

Configuring the GCC compiler switches in Qt, QtCreator, and QMake(在 Qt、QtCreator 和 QMake 中配置 GCC 編譯器開關)
本文介紹了在 Qt、QtCreator 和 QMake 中配置 GCC 編譯器開關的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我最近嘗試使用 Qt Creator 1.3.2、Qt 4.6.2 和 GCC4.4.0(32 位版本)在 Windows 7(64 位)上編譯使用一些實驗性 C++0x 擴展的應用程序并遇到以下(致命)錯誤:

I recently tried to use Qt Creator 1.3.2, Qt 4.6.2, and GCC 4.4.0 (32-bit version) on Windows 7 (64-bit) to compile an application using some of the experimental C++0x extensions and encountered the following (fatal) error:

這個文件需要編譯器和庫支持來支持即將到來的ISO C++ 標準,C++0x.此支持目前處于試驗階段,必須使用 -std=c++0x 或 -std=gnu++0x 編譯器選項啟用.

This file requires compiler and library support for the upcoming ISO C++ standard, C++0x. This support is currently experimental, and must be enabled with the -std=c++0x or -std=gnu++0x compiler options.

在尋找解決方案的過程中,我遇到了qmake 和編譯器標志?,并將以下內容添加到 .pro 文件中:

In my search for a solution, I came across the thread qmake and compiler flags?, and added the following to the .pro file:

CXXFLAGS += -std=c++0x

但這似乎沒什么區別.

所以,我希望有一些標簽需要添加到 .pro(項目)文件中,但我以前從未在 Qt、QMake 和 QtCreator 中使用過 GCC 編譯器開關,而且我不確定正確的祈求/咒語.所以,我的問題是在使用 QtCreator、QMake 和 Qt 時如何設置 GCC 編譯器開關?

So, I expect there's some tag I need to add to the .pro (project) file, but I've never messed with the GCC compiler switches in Qt, QMake, and QtCreator before, and I am uncertain about the proper invokation / incantation. So, my question is how do you set GCC compiler switches when using QtCreator, QMake, and Qt?

推薦答案

歸結為閱讀手冊.而不是在 .pro 文件中使用 CXXFLAGS,您需要使用 QMAKE_CXXFLAGS 如下:

It boils down to reading the manual. Instead of using CXXFLAGS in the .pro file, you need to use QMAKE_CXXFLAGS as in:

main.cpp:

#include <cinttypes>

int main() { return 0; }

main.pro:

SOURCES += main.cpp
QMAKE_CXXFLAGS += -std=c++0x

這篇關于在 Qt、QtCreator 和 QMake 中配置 GCC 編譯器開關的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

How can I read and manipulate CSV file data in C++?(如何在 C++ 中讀取和操作 CSV 文件數據?)
In C++ why can#39;t I write a for() loop like this: for( int i = 1, double i2 = 0; (在 C++ 中,為什么我不能像這樣編寫 for() 循環: for( int i = 1, double i2 = 0;)
How does OpenMP handle nested loops?(OpenMP 如何處理嵌套循環?)
Reusing thread in loop c++(在循環 C++ 中重用線程)
Precise thread sleep needed. Max 1ms error(需要精確的線程睡眠.最大 1ms 誤差)
Is there ever a need for a quot;do {...} while ( )quot; loop?(是否需要“do {...} while ()?環形?)
主站蜘蛛池模板: 国产精品日韩高清伦字幕搜索 | 久久国产成人 | 91精品国产91久久久久久吃药 | 天天躁日日躁狠狠的躁天龙影院 | 午夜影院在线观看免费 | 欧美成年人视频在线观看 | 久久久精品国产 | 日韩毛片中文字幕 | 免费一级欧美在线观看视频 | 欧美一区二区免费 | 久久久久久久国产精品 | 91成人在线视频 | 欧美9999| 久久精品性视频 | 国产乱码精品1区2区3区 | www亚洲精品 | 日韩伦理电影免费在线观看 | 91免费小视频 | 综合久久一区 | 国产传媒| 九九精品久久久 | 亚洲国产中文在线 | 91大神在线看 | 国产精品一卡二卡三卡 | 日韩精品一区在线观看 | 精品一区二区在线看 | 欧美中文一区 | 国产精品久久久久久久久久不蜜臀 | 操网站 | 亚洲综合视频 | 久久精品国产一区 | 免费观看一区二区三区毛片 | 成人激情视频免费在线观看 | 色综合天天综合网国产成人网 | 久草热8精品视频在线观看 午夜伦4480yy私人影院 | 二区视频 | 精品国产精品一区二区夜夜嗨 | 成人精品视频99在线观看免费 | 国产精品一区二区三区在线 | 91大片 | 在线国产小视频 |