Message-Id: Comments: Authenticated sender is From: "Salvador Eduardo Tropea (SET)" 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 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: Problems linking with rhide In-reply-to: <6u62kj$cje@lynx.rsn.hp.com> Precedence: bulk jbay AT mailhost DOT rsn DOT hp DOT com (Jeffrey Bay) wrote: > In article , > Salvador Eduardo Tropea (SET) wrote: > >"Jeff Bay" 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 > > 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