| delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
| From: | Thomas8675309 AT yahoo DOT com (Tom) |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: DJPGG and Windows XP Professional + I think a Undefined Reference or linker problem |
| Date: | 7 May 2004 07:09:51 -0700 |
| Organization: | http://groups.google.com |
| Lines: | 24 |
| Message-ID: | <7b68d58f.0405070609.e22b8c1@posting.google.com> |
| References: | <409a7633_1 AT mk-nntp-2 DOT news DOT uk DOT tiscali DOT com> <c7fdq0$9c3$1 AT antares DOT lu DOT erisoft DOT se> |
| NNTP-Posting-Host: | 63.72.148.162 |
| X-Trace: | posting.google.com 1083938992 7591 127.0.0.1 (7 May 2004 14:09:52 GMT) |
| X-Complaints-To: | groups-abuse AT google DOT com |
| NNTP-Posting-Date: | Fri, 7 May 2004 14:09:52 +0000 (UTC) |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Martin Stromberg wrote: > wordsworth <news AT callera DOT net> wrote: > : I have now tried gpp that compiles my prog. So what is the difference > : between gcc and gpp > > gpp is the C++ compiler and gcc is the C compiler. gcc calls either the C compiler or the C++ compiler (or other programs) depending upon the file suffix of the file provided on the command line. gpp is the same as gcc (I believe) but links in the C++ standard library by default, while gcc requires that the library be expressly listed on the command line to link it in. So using gcc on a C++ source file will call the C++ compiler but fail to link in the C++ standard library unless you explicitly tell gcc to do so. Which is why using gcc on C++ source files can lead to linker errors. (And yes, I recognize that Martin knows the difference and was simplifying to make it easier for new users.) Best regards, Tom
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |