From: pavenis AT lanet DOT lv To: Will Robinson , djgpp AT delorie DOT com Date: Sat, 25 Aug 2001 14:23:47 +0300 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: linux->dos cross-compiler Message-ID: <3B87B4F3.22540.33D4FC@localhost> References: <3B8644B9 DOT 22816 DOT 5F6E45 AT localhost> In-reply-to: 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; .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 > > 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