I'm no C expert, and am getting this error when trying to cross-compile a C application:
src/ls_sqlite3.c:522: error: expected expression before '/' token
The offending line is this:
sqlite3_busy_timeout(conn, lua_tonumber(L,3)); // TODO: remove this
I suspect the use of // for comments is not allowed by certain compilers or through some settings, but Google didn't help. Does someone know?
Thank you.
In the old C standard only allowed comments are /*...*/
. Only from C99 standards onwards //
are allowed as comments.
Since you didn't mention your compiler. You could change it to c-style comments
sqlite3_busy_timeout(conn, lua_tonumber(L,3)); /* TODO: remove this */
Check your compilers manual for a compatibility switch for c++ style comments.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With