Message-ID: <36D6FF7D.FA188E11@devnull.com> Date: Fri, 26 Feb 1999 12:09:33 -0800 From: Kagenin Organization: ShadowTek Software X-Mailer: Mozilla 4.5 [en] (Win95; U) X-Accept-Language: en,de MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: Problem building c++ programs References: <36D6AC81 DOT 91399226 AT solutions2000 DOT net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 209.142.48.145 X-NNTP-Posting-Host: 209.142.48.145 X-Trace: 26 Feb 1999 20:41:04 -0800, 209.142.48.145 Lines: 51 X-NNTP-Posting-Host: 209.63.224.240 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Nehru Juman wrote: > > Hello everybody. I really appreciate DJGPP as my location (Guyana, > South America) and situation has forced me to learn all of my computer > programming and finite/discrete math over the internet and also to > acquire compilers from this medium (incidentally, does anyone know where > I can get reference materials for the Win32 API?). > > I am currently having some difficulty with building c++ programs using > gcc. Any perfectly working c++ program (built fine with gxx) fails to > build with gcc. I keep getting the message: "Final Closure Error: Bad > File Descriptor (EBADF)". The problem is not with gcc itself, though, > because when I rename gxx to gcc the same problem occurs. Also, this > problem 'usually' only occurs when I use the -o switch with gcc. > > The reason I want to use gcc to compile c++ programs is that RHIDE can't > use gxx and builds with the -o switch and it's a pain doing all the work > manually from the c:> prompt. I guess my final approach will be to > modify and recompile RHIDE. gxx is merely a frontend for 'gcc -lstdcxx' or 'fire up gcc, and tell the linker to link with libstdcxx.a in the /lib directory.' gcc is merely a frontend for the programs that ACTUALLY do the compiling, like cc1.exe, gas.exe, ld.exe, etc... In your djdir/share/rhide directory, there should be a file called rhide_.env. Change it's name to rhide.env, and add these three lines to the bottom exactly with NO trailing Spaces RHIDE_TYPED_LIBS_DJGPP.cc=stdcxx RHIDE_TYPED_LIBS_DJGPP.cpp=stdcxx RHIDE_TYPED_LIBS_DJGPP.cxx=stdcxx Hey, Eli! The Faq only says to add the first line: Maybe all three should be in there. Kagenin -- "When the Going gets Weird, The Weird turn Pro." Hunter S. Thompson The above email addy is a spam magnet, working better than I'd like it to. If you wish to respond via email, I can be reached at kagenin at cyberspace dot org ICQ #25225491 AIM ID Kagenin Z