El Dude
El Dude

Reputation: 5618

Code comments now generating compiler errors

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

Answers (1)

jdarthenay
jdarthenay

Reputation: 3157

// comments do not work with -std=c89 or -ansi options. Use -std=c99 or -std=gnu99 instead.

Upvotes: 9

Related Questions