Date: Wed, 29 Aug 2001 11:45:09 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Will Robinson cc: djgpp AT delorie DOT com Subject: Re: linux->dos cross-compiler In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Tue, 28 Aug 2001, Will Robinson wrote: > End result was exactly the same (still had to explicitly include crt0.o, > libc, libgcc, and libstdc++ when linking This sounds like a problem with the specs file, I think. What does "gcc -v" print about the specs file it uses? Also, note that "-lc -lstdc++ -lgcc" is not what you need to put at the end of the link command if GCC doesn't get that by itself. The correct list of libraries is "-lc -lgcc -lc" (yes, -lc should appear twice, and in the order shown), and for C++ programs it should be "-lstdc++ -lm -lc -lgcc -lc".