Where to add compiler option flags?
Where to add compiler option flags?
Within Eclipse, I want to add a "-D" option flag to the compiler preprocessor. I'm looking at Settings>Tool Settings>GNU C++ Compiler>Preprocessor. Is that where I add the -D option flag?
Re: Where to add compiler option flags?
Yes, in the Preprocessor page of the GNU C++ Compiler settings, there is an option for setting defined symbols (-D)
Forrest Stanley
Project Engineer
NetBurner, Inc
NetBurner Learn Articles: http://www.netburner.com/learn
Project Engineer
NetBurner, Inc
NetBurner Learn Articles: http://www.netburner.com/learn
Re: Where to add compiler option flags?
Thanks Forrest.
Re: Where to add compiler option flags?
One final question Forrest. Is the -D portion assumed? For example, in the window for Defined Symbols (-D) would I enter -Dname or just name.
Re: Where to add compiler option flags?
The -D will be added automatically. You just need to add name.
Forrest Stanley
Project Engineer
NetBurner, Inc
NetBurner Learn Articles: http://www.netburner.com/learn
Project Engineer
NetBurner, Inc
NetBurner Learn Articles: http://www.netburner.com/learn