Mail Archives: djgpp/1997/05/05/07:48:00
Daniele Prato wrote:
>
> I am a new user of DJGPP tools and RHIDE and I plan to use STL...
> But I have a problem linking project.
>
> When rhide link, use the command:
>
> gcc -Xlinker -lstdcxx -oauto.exe auto.o loop.o sito.o veicle.o
>
> (I have added "-lstdcxx" option in "Options-Linker Options" menu of
> rhide).
The first: If you want to link in your program additional
libraries, you should specify them in 'Options/Libraries'
and NOT in 'Options/Linker options'. This menu entry is only
for any addition special options for the linker (like
'-s' '-Map ...' and so on).
The second: The library you want is libstdcx.a.
> The correct command I think is:
> gcc -oauto.exe auto.o loop.o sito.o veicle.o -lstdcxx
No:
gcc -o auto.exe auto.o loop.o sito.o veicle.o -lstdcx
If you put 'stdcx' in the libraries dialog in RHIDE (and
mark checkbox before that line on), then you will get what
you want.
Robert
--
*****************************************************************
* Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau *
* Post: Am Berg 3, D-09573 Dittmannsdorf *
* e-Mail: Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE *
* WWW: http://www.tu-chemnitz.de/~rho *
*****************************************************************
- Raw text -