开发者

Qt Creator and GCC

开发者 https://www.devze.com 2023-04-09 15:50 出处:网络
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 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 :)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号