Timeline for GCC pragma: error: expected expression before ‘#pragma’
Current License: CC BY-SA 4.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 23, 2025 at 18:39 | answer | added | John Bollinger | timeline score: 2 | |
| Oct 23, 2025 at 18:28 | vote | accept | sdbbs | ||
| Oct 23, 2025 at 15:32 | answer | added | White Owl | timeline score: 8 | |
| Oct 23, 2025 at 15:06 | comment | added | Jonathan Leffler |
You're using GCC 11.4.0, I see. With GCC 15.2.0 on macOS Tahoe 26.0.1, I get the warning message and (because I have -std=c18 -Werror=strict-prototypes set) an error about the definition (declaration) of main. WIth -std=c23, that goes away.
|
|
| Oct 23, 2025 at 14:46 | history | asked | sdbbs | CC BY-SA 4.0 |