Mail Archives: djgpp/2001/08/25/07:24:19
On 24 Aug 2001, at 17:31, Will Robinson wrote:
> > > Just FYI, I found that the offending assembler line is:
> > >
> > > .def __vptr$__basic_file<char>; .val 0; .scl 8; .type 01124; .endef
> >
> > Known problem
> >
> > I suggest looking for changes done for DJGPP port of gcc-3.0
> > (see archive v2gnu/alphas/gcc30s2.zip) or more exactly for patch to
> > gcc/sdbout.c.
>
> Applying sdbout.c.diff allowed me to successfully finish compiling! After
> a "make install," I had gcc and g++ in my
> /opt/djgpp/i586-pc-msdosdjgpp/bin directory. And identical binaries like
> /opt/djgpp/bin/i586-pc-msdosdjgpp-gcc.
>
> ...but C++ is still not all there. I enter this program as string.cpp:
>
> #include <string>
>
> int main()
> {
> string s = "yay!";
> return 0;
> }
>
> and then try to compile it with i586-pc-msdosdjgpp-g++. I get:
>
> string.cpp: In function `int main()':
> string.cpp:5: `string' undeclared (first use this function)
> string.cpp:5: (Each undeclared identifier is reported only once for each
> function it appears in.)
> string.cpp:5: parse error before `=' token
string class is now namespace std.
Andris
- Raw text -