cancel
Showing results for 
Search instead for 
Did you mean: 

Compiling in release mode not possible

lars2
Associate II
Posted on January 06, 2010 at 10:49

Compiling in release mode not possible

5 REPLIES 5
lars2
Associate II
Posted on May 17, 2011 at 15:06

Dear,

I programmed at STVD in C and used also some ST-firmware-functions. When I build the project in debug mode everthing is working fine.

When I try to build the project in release mode there are many errors just building the first stm8s-firmware file ''adc1.c''. (Errors: bad struct, not defined ...)

I'm using the STM8 Cosmic compiler and STVD 4.1.2!

I hope this problem can be solved quickly.

Regards,

Lars

luca239955_st
Associate III
Posted on May 17, 2011 at 15:06

that's strange.. please post the command lines generated by STVD to the compiler for both cases.

Regards,

Luca (Cosmic)

luca239955_st
Associate III
Posted on May 17, 2011 at 15:06

Hi,

I'm no STVD expert, since it's not a Cosmic product, but the list of include paths is different in the two cases, and the problem might come from there.

Hope it helps.

Luca

lars2
Associate II
Posted on May 17, 2011 at 15:06

These are the messages from the output window.

Regards,

Lars

lars2
Associate II
Posted on May 17, 2011 at 15:06

Hi Luca,

many thanks. Now it works. You gave me the right direction. The uC-type wasn't included in the Preprocessor Definitions in release options.

Thanks and regards,

Lars