Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
unwind
on March 10, 2014
|
parent
|
context
|
favorite
| on:
What Are Your GCC Flags?
Very surprising to not see the -std option to actually clarify which language standard is being used. Perhaps that isn't as important in C++ as it is in C.
xroche
on March 10, 2014
|
next
[–]
The -ansi switch is used, and imply -std=c90 for C and -std=c++98 for C++. But an explicit -std might be better, I suppose.
cliveowen
on March 10, 2014
|
prev
|
next
[–]
Is there a way to specify C89 but use the C99 style comments (i.e. //)?
mpyne
on March 10, 2014
|
parent
|
next
[–]
I believe that -std=gnu89 should give you C89 with that particular extension (and some others).
fexl
on March 10, 2014
|
prev
[–]
Agreed, see my post above about -std=c99.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: