This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to check for "--gcc" setting in code in CCS 5?



Hello-- 

After spending about an hour trying to figure out the problem after switching targets from f2012 to g2402, I re-learned that to enable the packed attribute on a structure definition, I needed to enable gcc support ("--gcc") in the project.

I've since adding an inline note in the code around that structure definition to remind myself for next time, but I was wondering if there is a #define that I can check for ("#ifdef..") in the code and throw an error if it's not enabled?

thanks,
..dane