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.

TMS320F28377D: Error #97 a translation unit must contain at least one declaration

Part Number: TMS320F28377D

Hello,

I include an header file in an asm. This header file contains several #define.

When the compiler option is set to: --strict_ansi (for c99), an error is produced when the asm is processed: Error #97 a translation unit must contain at least one declaration.

When I add a declaration of a variable in the header file, there is no more error.

Why a compiler option has an influence on the assembler ?

Why is it impossible to have #define without variable definition in the header file ?

Thanks for your answer.

Best regards