Apache OpenOffice (AOO) Bugzilla – Issue 49422
--with-build-version and C2015: too many characters in a constant
Last modified: 2006-09-04 08:24:02 UTC
Hi, I tried to use ./configure --with-build-version="Build-2 (Sun May 15 23:23:17 CEDT 2005)" and the build on Windows failed with: e:\home\pavel\BuildDir\ooo_SRC680_m103_src\sfx2\source\dialog\about.cxx(240) : error C2015: too many characters in constant See the attached screenshot from rdesktop.
Created attachment 26252 [details] C2015: screenshot
build on GNU/Linux with gcc 3.4.1 was OK.
Looks like the problem may well be that it's treating this as 'sdfsdfsfsd' ie. as a character literal instead of binning the ''s and treating the (quoted) string literal as a string. Unfortunately - the quoting behavior is acutely unpleasant - tricky, nasty, etc. I suggest that any chance is conditional on Win32 - quite possibly a different quoting style in the makefile.mk would work well there. HTh.
> Unfortunately - the quoting behavior is acutely unpleasant - tricky, nasty, etc. > I suggest that any chance is conditional on Win32 - quite possibly a different > quoting style in the makefile.mk would work well there. Nah, I just goofed a bit in guw.pl ;) I knew that my handling of quoted strings in guw needed an overhaul but it didn't trigger any bug so far.
No, guw.pl is not guilty, the "$%&$ MS compiler is the problem. I don't know where they are hiding the information about quoting in command files (@-files) for cl.exe, but I didn't find it :( After some experiments I found that quoting with ' is not supported, " is supported. So to get something like "String with space" into MYMACRO one *has* to use -DMACRO="\"String with space\"" .
Created attachment 26880 [details] Patch for sfx2/source/dialog/makefile.mk
The first hunk of the previous patch is the actual patch, the second is only a clean-up. Pavel can you test it?
Sure - works OK.
Committed to vq17.
vq->pjanik: Please verify.
verified
closing.