Mail Archives: djgpp/1998/07/15/17:16:27
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 -