kS
20th December 2010, 20:15
How do I generate preprocessor output on qt Creator ?
the standard -E option for mingw32 doesn't work.
thanks
ChrisW67
20th December 2010, 21:54
The -E option for gcc/g++ and does work quite happily in the MingW GCC compiler.
Adding -E to the QMAKE_CFLAGS and QMAKE_CXXFLAGS varaibles adds the -E option to the compiler calls. Something like:
QMAKE_CFLAGS = $$QMAKE_CFLAGS -E
QMAKE_CXXFLAGS = $$QMAKE_CXXFLAGS -E
However, the way that the Makefile is written by qmake means that two things will happen:
The preprocessed output will be captured into the object (.o) file
The link will fail because the object file is actually a text file
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.