[ABANDONED] cstddef and stddef.h in cpp file error

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [ABANDONED] cstddef and stddef.h in cpp file error

    Creating a default executable C/C++ project and simply using the following main code causes the following error: "cannot combine with previous 'int' declaration specifier"

    C Source Code

    1. #include <cstddef>
    2. //#include <stddef.h> // doesn't work either
    3. int main() {
    4. }
  • Hello,

    Thank you for your inquiry.
    Could you provide a bit more information about your setup?
    What version of ES are you using?
    How is your project set up? Which Run time library, which linker, which compiler etc.?
    To simplify things, could you provide an example project with which the issue is reproducible?

    Best regards,
    Please read the forum rules before posting: Forum Rules

    Keep in mind, this is not a support forum. Its main purpose is user to user interaction.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.