Mail Archives: djgpp/1998/10/03/05:36:42
Steve Chapel wrote:
>
> Boon van der RJ wrote:
> >
> > On Sat, 26 Sep 1998, ajschrotenboer wrote:
> > > I can compile and link .c files, but cannot .cc or .cpp.
> > >
> > > I can compile .cc and .cpp, but when I go to make (I'm using RHIDE 1.4)
> > > I get a linker error.
> > >
> > > Error: c:/djgpp/bin/ld.exe: cannot open -lstdcx: No such file or
> > > directory (ENOENT)
> > >
> > > What's wrong??????
> >
> > Apart from other solutions you've got (FAQ, RH-ide, and the
> > non-optimal rename), it can also result from still
> > using the stock gxx.exe you get with djdev201.
> > Use the one that ships with gpp281b.zip, if that's the problem.
>
> I just installed DJGPP for the first time, and have exactly the
> same problem. After reading this message, I unzipped gpp again to
> put its version of gxx.exe in, but it didn't help at all.
>
> I also have the program the when I #include <iostream> I get a
> message that the file streambuf.h cannot be found. It's in the
> same directory where iostream and iostream.h are, and gxx found
> both of those, so why not streambuf.h?
After considerable effort, I solved all my problems. Here's how:
1) Added the line:
FILES=60
to C:\CONFIG.SYS to allow up to sixty files to be open.
2) Added the line:
SET LFN=Y
to C:\AUTOEXEC.BAT to enable support for "long file names".
These suggestions are well buried in the DJGPP FAQ! I can't imagine
anyone compiling C++ without the long file name support. I couldn't
even get the hello world program:
#include <iostream>
int main() {
cout << "Hello, world!" << endl;
return 0;
}
to compile without it!
I still had a problem with running out of virtual memory while
compiling C++ programs, but when I
3) Set the DOS Window properties to:
Memory | Extended | Auto
Memory | DPMI | Auto
that problem went away as well.
- Raw text -