cancel
Showing results for 
Search instead for 
Did you mean: 

how to change c language from c90 to c99 in stvd

Ajadh.1
Associate II

Hi,

I am using STVD to debug program for stm8s105c6 MCU. Here am able to compile code properly, and using cosmic compiler.

I am getting error for Inline, and also prototype missing, semicolon missing, invalid constant expression, etc. errors are coming.

Do they are occurring due to c language standard version or anything else?

Please guide.

Thanks in advance.

2 REPLIES 2
Ozone
Lead II

The supported standards and the compiler flags for processing a module should be specified in the toolchain manuals.

I had never been working with the Cosmic compiler.

> I am getting error for Inline, and also prototype missing, semicolon missing, invalid constant expression, etc. errors are coming.

The inline error is probably standard related, the others are likely not.

Check you MCU header file for compiler-dependant #if /#ifdef sections.

Perhaps a toolchain define is missing, and you pull the wrong toolchain-dependant definitions.

Ajadh.1
Associate II

Thanks