Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Code comments now generating compiler errors

Tags:

c

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

like image 803
El Dude Avatar asked Jul 21 '26 22:07

El Dude


1 Answers

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

like image 159
jdarthenay Avatar answered Jul 25 '26 10:07

jdarthenay



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!