Instead of calling /usr/bin/gcc
, use /usr/bin/c99
. This is the Single-Unix-approved way of invoking a C99 compiler. On an Ubuntu system, this points to a script which invokes gcc
after having added the -std=c99
flag, which is precisely what you want.
More Related Contents:
- What is the behavior of integer division?
- Printf width specifier to maintain precision of floating-point value
- Is type-punning through a union unspecified in C99, and has it become specified in C11?
- Is it possible to iterate over arguments in variadic macros?
- func() vs func(void) in C99
- Standard alternative to GCC’s ##__VA_ARGS__ trick?
- What does dot (.) mean in a struct initializer?
- What is the use of the `inline` keyword in C?
- C99 boolean data type?
- What is the correct type for array indexes in C?
- GCC with -std=c99 complains about not knowing struct timespec
- What is a trampoline function?
- Does either ANSI C or ISO C specify what -5 % 10 should be?
- Realistic usage of the C99 ‘restrict’ keyword?
- Flexible array member in C-structure
- Does C99 guarantee that arrays are contiguous?
- In C99, is f()+g() undefined or merely unspecified?
- Is there a meaningful distinction between freestanding and hosted implementations?
- Can I omit return from main in C? [duplicate]
- C variable declarations after function heading in definition [duplicate]
- state machines tutorials [closed]
- Anonymous union within struct not in c99?
- Which C99 features are available in the MS Visual Studio compiler?
- How to use compound literals to `fprintf()` multiple formatted numbers with arbitrary bases?
- Printf long long int in C with GCC?
- What’s the difference between “int” and “int_fast16_t”?
- Is there any option to switch between C99 and C11 C standards in Visual Studio?
- What is wrong with using turbo C?
- Dynamic array allocation on stack in C
- Unsigned to signed conversion in C