what is --C99 in compiler option?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-04-22 3:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-04-22 5:51 AM
Run the compiler as if it was the 1999 version, i.e. with features/checks/limits of back then. Useful for code that was written and tested with C99 compiler, and won't compile or run properly with current compiler.
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-04-22 6:07 AM
thank you
I have a GLCD library and use functions that was defined in it
When I use extern function define it will be error
by use --C99 comand it will be OK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-04-22 6:32 AM
- Check the compiler's manual for the syntax of the commands, maybe you have an older style than compiler default expects.
- maybe the function was replaced/renamed in a newer version.
- Post the section of code so others can comment on it.
- maybe the library was compiled with an older version of the compiler, or with different options. Check library documentation, and check online about usage for the library. Search online for [error message & library name].
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-04-22 8:24 AM
C99 is a standard and --c99 will compile code in that standard.
https://developer.arm.com/documentation/dui0491/i/Compiler-Command-line-Options/--c99?lang=en
The next standard was C11, which changed some things.
Read and interpret the error messages to debug the code.
