Qt Creator and GCC
How I can build native C++ files using Qt Creator. I want to write native C++ programs in Qt Creator and then bui开发者_Python百科ld them using GCC.
How I can do it?
P.S. I am on Ubuntu 10.04 with Qt Creator 2.1.1
1) Create a folder where you will store you project and run command:
qmake -project && qmake your_project.pro && make
2) Open your_project.pro and put some flags etc... like
#c++0x
QMAKE_CXXFLAGS += -std=c++0x
#obj foldr
unix:OBJECTS_DIR = ../your_project/obj
3) Go and open pro file with your qtcreator.
4) Enjoy coding :)
精彩评论