Yes, in fact the same Problem. But in my case even VERSION=\\"test\\" does not work:(. CB gives me the following compiler log here:
<command-line>:0:9: warning: missing terminating " character
Process terminated with status 1 (0 minutes, 1 seconds)
0 errors, 1 warnings (0 minutes, 1 seconds)
Quite strange. No error, but return 1 and I don't get any executables out. What am I doing wrong (I only want to build this project at linux, btw)?
The real problem, that was also not answered in this other thread, as I think, is:
I do not understand. On both platforms (Windows and Linux), gcc on the commandline needs -DDEF_NAME=\"DEF_VALUE\", i.e. using single backslash to escape the quotation mark.
The difference is that if I specify this in #defines in the 'Project build options', I have to use DEF_NAME=\"DEF_VALUE\" on Windows and DEF_NAME=\\"DEF_VALUE\\" on Linux. In other words, it seems to me that the difference comes from C::B, not from the compiler...