[Qt-creator] Qt Creator predefined macro file

Ádám Balázs broothy at gmail.com
Thu May 18 11:45:40 CEST 2017


Hi,

Our project has a predefined macro file that is given to the compiler
(GCC/Clang) with the -imacros flag. It contains the platform specific
macros so it is a complicated and long file. Can I specify a predefined
macro file in Qt Creator because without it the code completion fails? I
know that I can specify my macros in the DEFINES section of the .pro file
but we have them in a standalone file. It is not possible to move them into
the .pro file because other colleagues use Eclipse. Adding -imacros in
QMAKE_CXXFLAGS has no effect on code completion.
In Eclipse you can set it on this screen: http://imgur.com/a/AVFMO
Is there a similar setting in Qt Creator?

Adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20170518/2856b406/attachment.html>


More information about the Qt-creator mailing list