Mail Archives: djgpp/1999/01/10/08:43:26
to comp.os.msdos.djgpp wrote :
>
> When building a two-module project in RHIDE, it gets to the link phase
> and aborts the build with the message:
>
> demo.o(5) Error: unterminated string or character constant
> demo.o(1) Error: possible real start of unterminated constant
> dfltmenu.o(1) Error: syntax error before character 01
[snip]
> These are errors in the objects created by RHIDE's compile phase, not
> errors in my source. The thing is, RHIDE just got done compiling these
> two objects before the linking error occurred. The modules compile
> without generating any errors or warnings using -Wall.
How do you have compiled them? (in RHIDE or outside).
What have you included in your project in RHIDE?
(the source files or the object files)
>
> The RHIDE compiler options are set as
>
> -x c++
>
> ...to force it to compile the modules as C++. I need to do this because
RHIDE (or better gcc) knows how to compile a file by examining
the suffix of the file. So it knows already to compile a file
with the suffix .c as a C-source file and to compile a file with
the suffix .cc or .cpp as C++-source file. So you will normally
not need to overwrite the automatically detection (except you will
compile a file like foo.xyz as a C++ source).
Robert
--
******************************************************
* email: Robert Hoehne <robert DOT hoehne AT gmx DOT net> *
* Post: Am Berg 3, D-09573 Dittmannsdorf, Germany *
* WWW: http://www.tu-chemnitz.de/~sho/rho *
******************************************************
- Raw text -