delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/08/25/07:24:19

From: pavenis AT lanet DOT lv
To: Will Robinson <wsr23 AT Stanford DOT EDU>, djgpp AT delorie DOT com
Date: Sat, 25 Aug 2001 14:23:47 +0300
MIME-Version: 1.0
Subject: Re: linux->dos cross-compiler
Message-ID: <3B87B4F3.22540.33D4FC@localhost>
References: <3B8644B9 DOT 22816 DOT 5F6E45 AT localhost>
In-reply-to: <Pine.GSO.4.31.0108241212250.6574-100000@elaine10.Stanford.EDU>
X-mailer: Pegasus Mail for Win32 (v3.12c)
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019