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
How to enable -E PreprocessOnly?
-
- CodeLite Curious
- Posts: 1
- Joined: Fri May 20, 2011 7:42 am
- Genuine User: Yes
- IDE Question: C++
- Contact:
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: How to enable -E PreprocessOnly?
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:
Once the build is over, open the file './Debug/c.o.i' in the editor to see the output
Eran
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"
Eran
Make sure you have read the HOW TO POST thread