X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: Problem with cross compile from Linux to DOS Date: 1 Jan 2002 16:52:28 GMT Organization: Aachen University of Technology (RWTH) Lines: 26 Message-ID: References: NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 1009903948 16784 137.226.32.75 (1 Jan 2002 16:52:28 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 1 Jan 2002 16:52:28 GMT Originator: broeker@ To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com findleyd AT swbell DOT net wrote: > ------------------------------ Makefile ------------------------------------ > TARGET = testx > C++ = i586-pc-msdosdjgpp-g++ -v > CXXFLAGS = -g \ > -I /usr/include/g++-2 \ > -I /usr/include \ > -I /usr/local/include These are almost certainly wrong. You can't use any of the stuff found in the _native_ include directories /usr/include and /usr/local/include for a _cross_ compilation. > ------------------------------------------------------------------------ > libstdc++.a is on /usr/local/lib/gcc-lib/i586-pc-msdosdjgpp/2.8.1 > linked to /usr/lib/libstdc++-2-libc6.1-1-2.9.0.a This cannot possibly be right. You can't use your Linux libstdc++ for cross-linking (and even of an incompatible version level wrt your cross GCC). You'll have to install a cross version of libstdc++, either from a full cross-build of GCC and libstdc++ sources, or from the gpp281b.zip DJGPP distribution file. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.