Skip to main content
lars2
Associate
January 6, 2010
Question

Compiling in release mode not possible

  • January 6, 2010
  • 5 replies
  • 2199 views
Posted on January 06, 2010 at 10:49

Compiling in release mode not possible

    This topic has been closed for replies.

    5 replies

    luca239955_st
    Associate II
    May 17, 2011
    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)

    lars2
    lars2Author
    Associate
    May 17, 2011
    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

    lars2
    lars2Author
    Associate
    May 17, 2011
    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

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

    These are the messages from the output window.

    Regards,

    Lars

    luca239955_st
    Associate II
    May 17, 2011
    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