delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/21/15:45:53

Message-Id: <m0zLBsS-000S4mC@inti.gov.ar>
Comments: Authenticated sender is <salvador AT natacha DOT inti DOT gov DOT ar>
From: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT gov DOT ar>
Organization: INTI
To: jbay AT mailhost DOT rsn DOT hp DOT com (Jeffrey Bay), djgpp AT delorie DOT com
Date: Mon, 21 Sep 1998 16:47:33 +0000
MIME-Version: 1.0
Subject: Re: Problems linking with rhide
In-reply-to: <6u62kj$cje@lynx.rsn.hp.com>

jbay AT mailhost DOT rsn DOT hp DOT com (Jeffrey Bay) wrote:

> In article <m0zL814-000S4fC AT inti DOT gov DOT ar>,
> Salvador Eduardo Tropea (SET) <salvador AT inti DOT gov DOT ar> wrote:
> >"Jeff Bay" <jeffbay AT worldnet DOT att DOT net> wrote:
> >
> >> (Not the problem with stdcx, I promise!)
> >
> >:-)))
> > 
> >> When I try to Build all, I get 2 errors, both relating to the main program.
> >> It says that main is already defined, though I'm only including stdio.h and
> >> 
> >> have main only defined in one place...
> >
> >Please post more information, or just send me a copy ;-)
> >
> 
> Hmmmm... I'm not sure what information to send... I'm using an HP pavilion 
> running Win95. I downloaded all the files the "zip picker" told me to in order
> to compile and run programs with rhide, c, and c++. I have a simple hello world
> prgram, which looks like this:
> 
> #include <stdio.h>
> 
> int main(int argc, char * argv[]) {
>    printf("hello world!\n");
>    return(0);
> }
> 
> 
> 
> This program will build and run just fine when executed as a "C" program, but 
> when I save the source file as a ".cc" file, delete all derived objects, and
> try to recompile, it says "main declared twice" when linking the .o file,
> and references the source file for its first declaration. Does this help any?

Are you using a project? 
Yes => is that the only file in the project?
No => is that the only file opened in RHIDE?

SET
------------------------------------ 0 --------------------------------
Visit my home page: http://set-soft.home.ml.org/
or
http://www.geocities.com/SiliconValley/Vista/6552/
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org
ICQ: 2951574
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(541) 759 0013

- Raw text -


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