www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/15/17:16:27

Reply-To: "Jorge Ivan Meza Martinez" <jimeza AT usa DOT net>
From: "Jorge Ivan Meza Martinez" <jimeza AT usa DOT net>
To: <djgpp AT delorie DOT com>
Subject: RHIDE Help
Date: Wed, 15 Jul 1998 16:09:15 -0500
Message-ID: <01bdb034$d3107120$LocalHost@default>
MIME-Version: 1.0

Hello,

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.

into the RHIDE "directories" I add the directoy where my code is; under
"libraries" I add gpp, gcc and stdcxx; under "linker options" I put "-O"
because "-O2" didn't work ( ? ); I didn't touch anything else.

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"

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 ?

what "-XLinker" is ?  is it default or I have to change something ?

thanks for your help,

jorge ivan meza martinez
http://members.xoom.com/THP
jimeza AT usa DOT net


- Raw text -


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