From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: problems linking with rhide Date: Fri, 24 Jan 1997 20:01:04 -0800 Organization: Two pounds of chaos and a pinch of salt Lines: 32 Message-ID: <32E98580.8D5@cs.com> References: <32E8AD14 DOT 2D9E AT ican DOT net> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp107.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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 | ---------------------------------------------------------------------