Sender: nate AT cartsys DOT com Message-ID: <35F745A9.1CB16501@cartsys.com> Date: Wed, 09 Sep 1998 20:21:13 -0700 From: Nate Eldredge MIME-Version: 1.0 To: Erik och Marianne Berglund CC: "'djgpp AT delorie DOT com'" Subject: Re: I dont get anywhere??? References: <01BDDC24 DOT 1F38EE40 AT t6o22p40 DOT telia DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk 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