[Qt-interest] Set gcc compiler

Bastian Bense bastibense at gmail.com
Thu Jun 11 12:28:23 CEST 2009


You can define which compiler to use by adding

QMAKE_CC = /path/to/c-compiler
QMAKE_CXX = /path/to/cpp-compiler

to your .pro file.

Also see the documentation for more information, "qmake Variable  
Reference".

Hope that helps.

Basti

Am 11.06.2009 um 12:18 schrieb Anil H:

> I had done sample c libraries and integrated the c library with QT  
> based GUI applications. In the process I observed that QT  
> automatically compiles with GCC depending on the file extension. If  
> source file added to the project is of .c extensions , QT-Creator  
> compiles with GCC. However GUI related .cpp files are compiled using  
> g++.




More information about the Qt-interest-old mailing list