How to enable -E PreprocessOnly?

General questions regarding the usage of CodeLite
Rinaldo
CodeLite Curious
Posts: 1
Joined: Fri May 20, 2011 7:42 am
Genuine User: Yes
IDE Question: C++
Contact:

How to enable -E PreprocessOnly?

Post by Rinaldo »

Using CodeLite 2.10.0.4798 with GNU GCC (arm-none-eabi-gcc).

What do I need to do in build settings to enable the PreprocessOnly switch? I see the switch available in Build Settings ->Compilers-> gnu gcc -> switches but I'm not sure how to actually enable it.

Thanks
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: How to enable -E PreprocessOnly?

Post by eranif »

It will work only for projects which are using codelite's generated makefiles.

How to use it? right click on the file you wish to pre-process and click it
You will see an output similar to this:

Code: Select all

C:\Windows\system32\cmd.exe /c ""mingw32-make"  -j 4 -f "TestExe.mk"  ./Debug/c.o.i"
Once the build is over, open the file './Debug/c.o.i' in the editor to see the output

Eran
Make sure you have read the HOW TO POST thread
Post Reply