Reputation: 21
I'm trying to compile a C program on Solaris. It's complaining on lines having comments starting with //
.
I'm new to solaris. Please suggest a solution.
ss0iconv.c
// This is line 193
Output:
src/c_asm/sol/ss0iconv.c", line 193: syntax error before or at: /
Upvotes: 2
Views: 2357
Reputation:
The // style comments were introduced in C99 - your compiler probably only supports C89, so you won't be able to use them.
Upvotes: 11