www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/10/08:43:26

Message-ID: <3698C8F7.9699710F@gmx.net>
Date: Sun, 10 Jan 1999 14:36:23 -0100
From: Robert Hoehne <robert DOT hoehne AT gmx DOT net>
Organization: none provided
X-Mailer: Mozilla 4.07 [de] (Win95; I)
MIME-Version: 1.0
To: DJGPP Mailing list <djgpp AT delorie DOT com>
Subject: Re: RHIDE corrupting an object file?
References: <779cmv$7hh$1 AT samba DOT rahul DOT net>
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019