Message-ID: <37AA79FD.19748A62@megsinet.net> From: David Oppenheimer X-Mailer: Mozilla 4.61 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: When I use RHIDE to build C++ program... References: <3 DOT 0 DOT 32 DOT 19990805095109 DOT 007d5bd0 AT mail DOT colba DOT net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 69 Date: Fri, 06 Aug 1999 02:00:30 -0400 NNTP-Posting-Host: 216.214.124.63 X-Trace: news.corecomm.net 933919231 216.214.124.63 (Fri, 06 Aug 1999 01:00:31 CDT) NNTP-Posting-Date: Fri, 06 Aug 1999 01:00:31 CDT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com See RawHIDE message!!! David Oppenheimer varobert AT colba DOT net wrote: > At 07:43 PM 8/4/99 +0100, you wrote: > > > >Alvin Lau wrote in message > >news:37a81f73 AT ruby DOT hknet DOT com... > >> When I use RHIDE to build C++ program, it always responds an error message > >> "Error: c:/djgpp/bin/ld.exe: cannot open -lstdcx: No such file or > >directory > >> (ENOENT)" > >> > >> Why ? Anyone know how to build C++ program with RHIDE ?? > >> (I have both gcc and gxx in bin directory) > >> > >> > > > >Hi!. > > > >I have the same problem. > >I don't know why it does that, BUT I do know how to bypass it. > > Read the FAQ, search for -lstdcx. It explains how fix this RHIDE bug. > > > > >Compile the program in RHIDE. This creates an object file with a ".o" > >extension. > >>From RHIDE, goto FILE then DOS SHELL. > >Change to the directory in which the object file is. > >Say your program is "test.cpp". > >When you compiled it, "test.o" is created. > > > >To create the executable file, type in: > > > > gxx -o test.exe test.o > > > >Say you used the Allegro library with your program, type in: > > > > gxx -o test.exe test.o -lalleg > > > >You now can run your program by typing "test". > > > >SO... > > > >The syntax goes: > > > > gxx -o [name of executable file . exe] [name of object file .o] > >[library(if any)] > > gxx is a wrapper to gcc and adds -lstdcxx (the correct lib) to the command > line, so going > > gxx (whatever) > is equivalent to > gcc (whatever) -lstdcxx > > > > >RHIDE does the same, but it adds a -lstdcx switch for some reason I don't > >know. > >I am using this until I find out how to solve this "-lstdcx" thing. > > > > - GodOfWar > In the world of computers, things tend to become faster, smaller and > cheaper with time. Does that mean that Microsoft invented time travel ?