Mail Archives: djgpp/1997/01/25/04:24:30
b c wrote:
>
> i posted earlier, but i guess the title of the message was not
> appealing. neways i was wondering does everyone link this way
>
> ld ?????.0 -liostr
>
> and with that command line i get some stupid library not found
You should never run 'ld' directly unless you know exactly what you are
doing. RHIDE runs 'ld' with an extremely complex command line that is
based on the way gcc calls ld. To see this, try compiling your programs
with "gcc -v ..." and look at the line that invokes ld. If you cannot
live without using ld yourself, then copy as much of this command line
as you can. If you think you can live without it, just use this command
to link when you do it yourself:
gxx -o foo.exe foo.o foo2.o
'gxx' is a program which automatically adds the C++ libraries to the
command line. To do it yourself, you can use:
gcc -o foo.exe foo.o foo2.o -liostr
This subject is covered in the FAQ, btw.
--
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com |
| Proud owner of what might one | http://www.cs.com/fighteer |
| day be a spectacular MUD... | Plan: To make Bill Gates suffer |
---------------------------------------------------------------------
- Raw text -