Article View: comp.os.os2.programmer
Article #2179Re: Compiling with GCC 2.2.2
From: Colin Jensen
Date: Tue, 29 Sep 1992 04:46
Date: Tue, 29 Sep 1992 04:46
19 lines
1393 bytes
1393 bytes
In article <1a7rf4INNcvi@coral.bucknell.edu> skelly@coral.bucknell.edu (Kelly Sean David) writes: >I feel dumb asking this but how do you compile C++ programs with GCC 2.2.2? >I know in UN*X the command is g++ As of gcc 2.0, there is only one command neccessary to compile either assembly, C, or C++, and that command is....gcc. Gcc "decides" what type of compilation to invoke based on the filename extension of the source file. For example, ``.s'' is assembly, ``.c'' is ANSI-C, and ``.cc'' is C++. [Several other extension variants are also recognized as C++]. Just be sure *not* to use gcc to do your linking. Use link386 for that. >Also, is there any ftp-able documentation on link386? No. Link386 is documented in the Developer's Toolkit, which costs money, but is probably worth it. [It contains an online API reference] - Colin Jensen cjensen@ampex.com, ljensen@netcom.netcom.com
Technical Details
Message-ID:
<r#+pbsk.ljensen@netcom.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!think.com!wupost!csus.edu!netcom.com!ljensenReferences:
<1992Sep25.073705.18715@mynet.no> <1992Sep25.173912.27117@awdprime.austin.ibm.com> <1a7rf4INNcvi@coral.bucknell.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!wupost!csus.edu!netcom.com!ljensen From: ljensen@netcom.com (Colin Jensen) Subject: Re: Compiling with GCC 2.2.2 Message-ID: <r#+pbsk.ljensen@netcom.com> Date: Tue, 29 Sep 92 04:46:09 GMT Organization: Netcom - Online Communication Services (408 241-9760 guest) References: <1992Sep25.073705.18715@mynet.no> <1992Sep25.173912.27117@awdprime.austin.ibm.com> <1a7rf4INNcvi@coral.bucknell.edu> Lines: 19