| delorie.com/archives/browse.cgi | search |
| Message-ID: | <3662FD53.D82577BB@montana.com> |
| Date: | Mon, 30 Nov 1998 13:17:23 -0700 |
| From: | bowman <bowman AT montana DOT com> |
| X-Mailer: | Mozilla 4.5 [en] (Win95; I) |
| X-Accept-Language: | en |
| MIME-Version: | 1.0 |
| To: | djgpp AT delorie DOT com |
| Subject: | Re: gcc and g++ problem |
| References: | <CRB82.1917$CY1 DOT 8169909 AT news DOT itd DOT umich DOT edu> |
| Reply-To: | djgpp AT delorie DOT com |
Krian Upapatthangkoon wrote: > > I have a problem with gcc not calling g++ when compiling C++ code, even with a > cpp extenstion. gcc seems to treat every file as a C-only file, giving me the > usual errors that happen in that case. what gcc doesn't do is automatically link in the required C++ libraries. 'gcc myprog.cpp -lstdcxx' should work, producing both a.exe and a.out. See the FAQ, 8.7 for further explanation.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |