delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/10/00:31:31

Sender: nate AT cartsys DOT com
Message-ID: <35F745A9.1CB16501@cartsys.com>
Date: Wed, 09 Sep 1998 20:21:13 -0700
From: Nate Eldredge <nate AT cartsys DOT com>
MIME-Version: 1.0
To: Erik och Marianne Berglund <emberg AT falun DOT mail DOT telia DOT com>
CC: "'djgpp AT delorie DOT com'" <djgpp AT delorie DOT com>
Subject: Re: I dont get anywhere???
References: <01BDDC24 DOT 1F38EE40 AT t6o22p40 DOT telia DOT com>

Erik och Marianne Berglund wrote:
> 
> Hello, I'm trying to program C++ with DJGPP.
> Help me please! I just do not understand how to invoke the compilers,and especially what programs to use for what purpose!
> there are GXX,GCC,G++ and so on but which one do I use for what?
> I tried, for example, the following program:

`gcc' is the compiler (basically).  However, in order to link (make an
executable) from C++ files, one needs to include the C++ library.  One
could do this like:

gcc -o foo.exe foo.cc -lstdcxx

The `gxx' and `g++' programs simply do this for you, so the above is
equivalent to

g++ -o foo.exe foo.cc

Thus, you should use `g++' or `gpp' when linking C++.  (`gxx' is older
and lacks a few subtle features.)
-- 

Nate Eldredge
nate AT cartsys DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019