Quantcast
Channel: Qt DevNet forums: Installation and Deployment
Viewing all articles
Browse latest Browse all 2113

Removing warning flags in Qt Creator

$
0
0
Hi. I use Qt Creator as a general C++11 IDE after following the instructions given here [dkrypted.wordpress.com]. Since my codes are often simple and barely exceed 100 lines(I also don’t use any libraries), I would like my compilation to be faster. This is mainly because I make teeny tiny changes often(like add a character here, there, etc) and it is irritating to wait 10 seconds after each minor change for the code to compile. Now, I believe the reason is the large number of flags. In terminal, I would normally use g++ -std=c++0x main.cpp So, I spent at least a week on google trying to figure out how to modify the project file in order to disable as many compiler flags as I can. I found a few useful topics such as this [stackoverflow.com] but I still haven’t succeeded in removing many warning flags that I do not need. It would be really nice if someone can tell me how to remove as many compiler flags as possible. It would be sufficient for only the “barebone” flags to remain. The current compile output is g++ -c -m64 -pipe -std=c++0x -O2 -Wall -W -fPIE -I/usr/share/qt5/mkspecs/linux-g++-64 -I. -o main.o main.cpp g++ -m64 -Wl,-O1 -o serv main.o Of course, I am doing this because I think this makes the compilation faster. If there is a better way, please do tell me. I should also mention that I am not really much of a programmer(as you would have guessed), I am just a student. So, please make your instructions easily understandable. Thanks.

Viewing all articles
Browse latest Browse all 2113

Trending Articles