user304183
user304183

Reputation: 21

Single line comment - unable to compile on solaris

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

Answers (1)

anon
anon

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

Related Questions