
Gustavo Dutra <gdutra@topsystems.com.uy> writes:
Is there any switch to pass the compiler so it recognizes this old behavior, and I can compile old code?
This (multi-line string literals) was depreciated in previous verions of gcc and would have generated a warning. gcc 3.3 has removed support for this (mis)feature[1] and generates an error. You fix is correct, but should really have been done a little earlier so that the removal of the depreciated feature did not catch you out. [1] As far as I am aware it has never been valid C to span string literals across lines. There are 2 'correct' ways of doing this 1) Close the quotes at the end of each line as 2 adjacent string literals are treated as one. 2) Put a backslash at the end of each line to make (lexically) one line.