Hi,
The company has just bought Sun Studion 10 for a new development environment, whereas before I was using Sun Workshop 3. Unfortunately there are differences in the way that the two compilers and while not completly failing it is throwing up some very odd error messages. For example it does not seem to like the continuation character "\" (backslash) when used to continue a statement onto a new line.
The code below is the first part of a fprintf statement
Code:
 
fprintf (LogFileHandle, "01 Processed\n\
------------\n\
Crystal Records  %d\n\
Arbor Records    %d\n\
SSBS Records     %d\n\
Total            %d\n\n\
02 Processed\n\
------------\n\
Crystal Records  %d\n\
Arbor Records    %d\n\
SSBS Records     %d\n\
Total            %d\n\n\
02 Written Out\n\
-----------\n\
Crystal Records  %d\n\
Arbor Records    %d\n\
SSBS Records     %d\n\
Total            %d\n\n\
02 Ignored (Not Live)\n\
--------------------\n\
When you compile this you get the following warning:

"billing_data_merge.c", line 424: newline in string literal
"billing_data_merge.c", line 425: operand must be of integer, real or pointer type : op "--"
"billing_data_merge.c", line 425: operand must be of integer, real or pointer type : op "--"
"billing_data_merge.c", line 425: operand must be of integer, real or pointer type : op "--"
"billing_data_merge.c", line 425: operand must be of integer, real or pointer type : op "--"
"billing_data_merge.c", line 425: operand must be of integer, real or pointer type : op "--"
"billing_data_merge.c", line 425: operand must be of integer, real or pointer type : op "--"
"billing_data_merge.c", line 425: invalid source character: '\'
"billing_data_merge.c", line 425: syntax error before or at: n
"billing_data_merge.c", line 425: invalid source character: '\'
"billing_data_merge.c", line 426: invalid source character: '\'
"billing_data_merge.c", line 426: invalid source character: '\'
"billing_data_merge.c", line 427: invalid source character: '\'
etc

where the fprintf is on line 424. I cannot think why it is complaining about this, the code has not changed and the previous compiler handled it fine. I have tried various combinations of the -X[a|c|t|s] which turns on and off K&R and ISO compliance, but these do not have any effect.
Any ideas anyone?
Thanks