English 中文(简体)
Changing the warning level with Qt Creator and MinGW
原标题:

I m trying to find a way to change the warning level (I believe the default is 3 and I d like to change it to 4) of my project developped using Qt Creator (1.3.0) and MinGW.

Is it possible ?

最佳回答

See the qmake manual.

I also have Qt Creator 1.3.0 and MinGW and notice that the QMAKE_CXXFLAGS_WARN_ON variable appears to be set to -Wall. There are a number of QMAKE_CXXFLAGS... variables. These can be set/changed/adjusted in your *.pro file.

E.g. in myproject.pro

win32:QMAKE_CXXFLAGS_WARN_ON += -Wextra
问题回答

暂无回答




相关问题
PCSC-Lite Codes on Windows

I ve successfully built a program that can read Mifare 1K Card using Qt on Linux. So now, I would like it to run on Windows. From what I ve gathered, there s no PCSC-Lite port on Windows and I need to ...

mingw + python eagerly translating path

I am using: Windows XP Python 2.6.2 (standard install from python.org) git version 1.6.5.1-preview20091022 (installed from http://code.google.com/p/msysgit/) I have an environment variable looking ...

Conversion specifier of long double in C

The long double data type can have these conversion specifiers in C: %Le,%LE,%Lf,%Lg,%LG (reference). I wrote a small program to test : #include <stdio.h> int main(void) { long double d = ...

Linux Development C/C++/bash/python on windows-7

Before resorting to stackoverflow, i have spend a lot of times looking for the solutions. I have been a linux-user/developer for few years, now shifting to windows-7. I am looking for seting-up a ...

Gvim, MinGW and Powershell making them work the CLI way

Just shifted to windows7. Liking it :). Is there a way to install MinGW in windows, such that, i can cd to my code directory (which is different from MinGW install directory) and compile my code there....

Which version of gcc to install with MinGW?

If compiling and linking with MinGW gcc v3 is painfully slow, and gcc v4 is not the default install option: What, for a beginner are the advantages/disadvantages of installing one version or another? ...

热门标签