Mail Archives: djgpp/1999/02/27/14:38:09
Kagenin wrote:
> 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
Thanks for the advice. I did as you say and it makes fine except I keep
getting this message:
Error: foo.exe: final closure failed: Bad File Descriptor (EBADF)
- Raw text -