Reputation: 5618
I am trying to recompile an older project where a colleague has added few more adventurous comments (ok, these are Doxygen comments, I forgot)
For instance the triple ///
uint32_t nx; ///< number of columns
It was developed with 4.2 and now with 4.8 the compiler generates the following error:
error: expected specifier-qualifier-list before ‘/’ token
Should I get rid of all ///
expressions and replace with //
? It's a large project
Upvotes: 3
Views: 502
Reputation: 3157
//
comments do not work with -std=c89
or -ansi
options. Use -std=c99
or -std=gnu99
instead.
Upvotes: 9