Message-Id: Comments: Authenticated sender is From: "Salvador Eduardo Tropea (SET)" Organization: INTI To: jimeza AT usa DOT net, djgpp AT delorie DOT com Date: Thu, 16 Jul 1998 15:29:45 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: RHIDE Help In-reply-to: <01bdb034$d3107120$LocalHost@default> Precedence: bulk "Jorge Ivan Meza Martinez" wrote: > I have a little project, a main file ( main.cpp ) and a file with a class of > my own ( Lector.cpp ) I can compile & link succesfully from command line > with "gcc main.cpp lector.cpp -o estrella.exe -O2 -lgpp -lstdcxx" but not > with RHIDE. Let me see "libstdcxx.a" == 9.1 => your are using long file names. Now the problem is that earlier versions of djgpp (the ones used at the time RHIDE 1.4 was released) shipped this library as libstdcx.a. One quick solution is to just rename the library to the old name. There are more elegant solutions (harders for a newby I think). > into the RHIDE "directories" I add the directoy where my code is; Not needed, just start RHIDE from the directory where the sources are located. > under > "libraries" I add gpp, gcc and stdcxx; Don't do that, libgcc and libstdcx are included automatically. > under "linker options" I put "-O" Don't do that, use Options|Compilers|Optimizations > because "-O2" didn't work ( ? ); I didn't touch anything else. Nothing else? thanks god ;-)) > I press ctrl-f9 and it compiles right but at linker stage it uses: > "gcc -XLinker -O -o estrella.exe Lector.o main.o -lgpp -lgcc -lstdcxx -lstdcx" Ugly. > I have a project where Main.cpp and Lector.cpp are, Lector.h is in the same > directory. > > but when RHIDE links I get errors from my class Lector, everything is > undefined! > > I work with BC and when you don't add the .cpp file to the project you get > this errors, but I have it; am I omitting something ? Are you using #include "Lector.h" or #include ? (Use the first). > what "-XLinker" is ? It means: the next parameter is for the linker, no the compiler. You asked for it putting -O in liker options. > is it default or I have to change something ? :-)), no you touched enough, now fix the options ;-) 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