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.

Importing CCS3.0 Project & new C Problem: error: declaration may not appear after executable statement in block

Hello,

after importing a CCS3.0 into CCS 4.0 i receive hundreds of errors in my programm:

error: declaration may not appear after executable statement in block

I understand what this error means, but i don´t wan to fix my program, because i like the deklaration of variable in between executable code.

Do i have to rewrite my programm in order to support oldfashinded outdated  "C"?

My program compiled sucessfully with CC2.0

I am using "relaxed parsing" (non-Strict ANSI)

Regards, Tobias