| www.delorie.com/djgpp/mail-archives/browse.cgi | search |
| Date: | Wed, 29 Aug 2001 11:45:09 +0300 (IDT) |
| From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
| X-Sender: | eliz AT is |
| To: | Will Robinson <wsr23 AT Stanford DOT EDU> |
| cc: | djgpp AT delorie DOT com |
| Subject: | Re: linux->dos cross-compiler |
| In-Reply-To: | <Pine.GSO.4.31.0108281401080.19021-100000@elaine10.Stanford.EDU> |
| Message-ID: | <Pine.SUN.3.91.1010829114431.15631F@is> |
| MIME-Version: | 1.0 |
| 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 |
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".
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |