Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Define custom symbol for custom build configurations in QNX Momentics: (1 Item)
   
Define custom symbol for custom build configurations in QNX Momentics  
Let's make an example in Eclipse: I have two different source files for a Startup with a main-function, but depending on
 which build configuration I use, either one of them is used, or the other one.

I do this, by defining a custom symbol with the "-d" option in one of the build configurations, and leaving it out in 
the other one.

#ifdef CUSTOMSYMBOL
...
Specifically, under Eclipse, I can edit these settings under Project -> Properties -> C/C++ Build -> Settings -> Cygwin 
C++ Compiler -> Prepocessor imgdesc (I am using Cygwin under Windows for my C++ projects)

This works. Depending on which build configuration I use, only one of the two source files will be built by the compiler
 and the other one will be ignored.

However, this setting is specific to Cygwin.

I can't figure out, how to do it in QNX Momentics, since I do not have those options under the qcc Compiler.
Attachment: Image Unbenann2t.PNG 15.31 KB Image Unbenannt.PNG 32.51 KB