From: Roy C. <ta...@ya...> - 2001-08-27 03:15:09
|
When passing a double quoted string from my makefile to my gcc that has been built as a mingw cross compiler under cygwin I encounter an error. When building gcc under cygwin with no cross compile the error does not occur. If I substitute the desired strings into cppdefault.c using vi, I can then successfully compile using the cross-compiler. I have attempted to guess the needed syntax for passing a properly quoted string but have had no luck. What is the necessary syntax that I need to use for passing a beginning and ending double quote in this particular environment? Output from make: stage2/xgcc.exe -Bstage2/ -B/usr/local/mingw32/bin/ -DCROSS_COMPILE -DIN_GCC -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -DCYGWIN_CROSS_DIR=\"/usr/local/mingw32\" -I. -I. -I/gcc_cvs/gcc/gcc -I/gcc_cvs/gcc/gcc/. -I/gcc_cvs/gcc/gcc/config -I/gcc_cvs/gcc/gcc/../include \ -DGCC_INCLUDE_DIR=\"/usr/local/lib/gcc-lib/mingw32/3.1/include\" -DGPLUSPLUS_INCLUDE_DIR=\"/usr/local/lib/gcc-lib/mingw32/3.1/../../../..`echo /usr/local | sed -e 's|^/usr/local||' -e 's|/[^/]*|/..|g'`/include/g++-v3\" -DGPLUSPLUS_TOOL_INCLUDE_DIR=\"/usr/local/lib/gcc-lib/mingw32/3.1/../../../..`echo /usr/local | sed -e 's|^/usr/local||' -e 's|/[^/]*|/..|g'`/include/g++-v3/mingw32\" -DGPLUSPLUS_BACKWARD_INCLUDE_DIR=\"/usr/local/lib/gcc-lib/mingw32/3.1/../../../..`echo /usr/local | sed -e 's|^/usr/local||' -e 's|/[^/]*|/..|g'`/include/g++-v3/backward\" -DLOCAL_INCLUDE_DIR=\"/usr/local/include\" -DCROSS_INCLUDE_DIR=\"/usr/local/lib/gcc-lib/mingw32/3.1/../../../../mingw32/sys-include\" -DTOOL_INCLUDE_DIR=\"/usr/local/lib/gcc-lib/mingw32/3.1/../../../../mingw32/include\" \ -c /gcc_cvs/gcc/gcc/cppdefault.c /gcc_cvs/gcc/gcc/cppdefault.c:36: parse error before '/' token /gcc_cvs/gcc/gcc/cppdefault.c:36: warning: initialization makes pointer from integer without a cast /gcc_cvs/gcc/gcc/cppdefault.c:36: warning: missing initializer /gcc_cvs/gcc/gcc/cppdefault.c:36: warning: (near initialization for `cpp_include_defaults[0].cxx_aware') /gcc_cvs/gcc/gcc/cppdefault.c:40: parse error before '/' token /gcc_cvs/gcc/gcc/cppdefault.c:40: warning: initialization makes pointer from integer without a cast /gcc_cvs/gcc/gcc/cppdefault.c:40: warning: missing initializer /gcc_cvs/gcc/gcc/cppdefault.c:40: warning: (near initialization for `cpp_include_defaults[1].cxx_aware') /gcc_cvs/gcc/gcc/cppdefault.c:44: parse error before '/' token /gcc_cvs/gcc/gcc/cppdefault.c:44: warning: initialization makes pointer from integer without a cast /gcc_cvs/gcc/gcc/cppdefault.c:44: warning: missing initializer /gcc_cvs/gcc/gcc/cppdefault.c:44: warning: (near initialization for `cpp_include_defaults[2].cxx_aware') /gcc_cvs/gcc/gcc/cppdefault.c:52: parse error before '/' token /gcc_cvs/gcc/gcc/cppdefault.c:52: warning: missing initializer /gcc_cvs/gcc/gcc/cppdefault.c:52: warning: (near initialization for `cpp_include_defaults[3].cxx_aware') /gcc_cvs/gcc/gcc/cppdefault.c:56: parse error before '/' token /gcc_cvs/gcc/gcc/cppdefault.c:56: warning: missing initializer /gcc_cvs/gcc/gcc/cppdefault.c:56: warning: (near initialization for `cpp_include_defaults[4].cxx_aware') /gcc_cvs/gcc/gcc/cppdefault.c:60: parse error before '/' token /gcc_cvs/gcc/gcc/cppdefault.c:60: warning: missing initializer /gcc_cvs/gcc/gcc/cppdefault.c:60: warning: (near initialization for `cpp_include_defaults[5].cxx_aware') /gcc_cvs/gcc/gcc/cppdefault.c:75: parse error before '/' token /gcc_cvs/gcc/gcc/cppdefault.c:76: parse error before '/' token make[2]: *** [cppdefault.o] Error 1 make[2]: Leaving directory `/cygdrive/c/gcc_cvs_objdir/gcc' make[1]: *** [stage3_build] Error 2 make[1]: Leaving directory `/cygdrive/c/gcc_cvs_objdir/gcc' make: *** [bootstrap] Error 2 __________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ |