5 ms·
GCC in godbolt is always C++, even if you pass -std=c89/c99 : https://godbolt.org/g/SFMB1G https://godbolt.org/g/SFMB1G ; Clang doesn't even compile with -std=c
by jcelerier 8y ago
GCC in godbolt is always C++, even if you pass -std=c89/c99 : https://godbolt.org/g/SFMB1G https://godbolt.org/g/SFMB1G ; Clang doesn't even compile with -std=c89
- badsectoracula 8y agoDo not pass -std, just select the language from the combobox at the top right side of the source window. Your code doesn't compile (__cplusplus is undefined) if you select C. (btw i was talking about Clang, not GCC above)
- jcelerier 8y agodamn! I use godbolt everyday and didn't ever notice that you could change language like this. thanks!