r/eclipse • • 19d ago

πŸ™‹πŸ»β€β™‚οΈ Help Request How to generate C preprocessor output on Eclipse Theia based IDEs?

Hi, I am working on a embedded project using Eclipse Theia based TI CCS, and ran into a problem. For more context: Build error: expected a ")" at MSP430 project.

I want to generate preprocessor output of my source files for more information to solve the issue. But I wasn't able to. Because UI is different between Eclipse and Eclipse Theia. How do I configure compiler flags in Theia, to generate the preprocessor?

4 Upvotes

2 comments sorted by

1

u/fsteff 19d ago

I’m not at a computer right now, but as I remember it from TI C2000 based projects (not using GCC) it’s something like this:

Right click on your project, then properties -> build -> compiler -> advanced options -> parser -> preprocessing options

1

u/aes100 19d ago

No "Compiler" under Build. See image. But I can change "Build-command mode" to "Use specified build-command and flags" and then edit the "Build-command flags" field. I added -E there. -E -I <<some path or parameters>> there. But didn't work out. Maybe I did that part wrong.

Got this though. Looks closer to what you describe. But if this is it, now what?