delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/11/20/04:31:54

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: How to compile in C++ in DOS
Date: Thu, 20 Nov 1997 23:53:54 +0000
Organization: Two pounds of chaos and a pinch of salt
Lines: 48
Message-ID: <3474CD92.12C2@cs.com>
References: <19971119 DOT 173823 DOT 3142 DOT 0 DOT r-ogallegos AT juno DOT com>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp205.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Rod J Gallegos wrote:
> 
> I just downloaded the file "lgp271b.zip", headers for C++,  from
> coast.net/SimTel; however, I don't know in which directory I am supposed
> to place the "lang" directory in order for the headers to work.  Also,
> how do you access those headers?   Which commands should I know in order
> to compile in C++?

'v2/readme.1st' tells you what you need to do to compile C++ programs. 
The required packages, in addition to the basic DJGPP packages
(v2/djdev201.zip, v2gnu/bnu281b.zip, v2gnu/gcc2721b.zip), are
'v2gnu/gpp2721b.zip' and 'v2gnu/lgp271b.zip'.  If you have all of these,
then you should have unzipped them all in the SAME way, from the SAME
directory, making sure to preserve the directory structure in the
zipfiles (default for unzip386, '-d' switch with pkunzip).  When you are
done you should have a directory structure that looks like this: 
(substitute your own directory for the root djgpp dir)

djgpp
  |-- bin
  |-- include
  |-- info
  |-- lang
  |-- lib
  |-- manifest
  |-- temp
  |-- zoneinfo

This is the correct directory structure for a DJGPP installation.  Once
you have done this, you must make the two autoexec.bat changes listed in
'readme.1st':  add the 'bin' directory to your PATH, and set the DJGPP
environment variable.  Reboot so the changes will take effect, and you
should be able to compile programs.

Instructions for compilation are also in 'readme.1st'.  Basically, you
use 'gcc' to compile C programs, and 'gxx' to compile C++ programs. 
gcc/gxx has a plethora of options that you can read about using the
online Info documentation reader in v2gnu/txi390b.zip.

hth

-- 
---------------------------------------------------------------------
|      John M. Aldrich       | "Democracy is based on the assumption|
|       aka Fighteer I       | that a million men are wiser than one|
|   mailto:fighteer AT cs DOT com   | man.  How's that again?  I missed    |
| http://www.cs.com/fighteer | something."    - Lazarus Long        |
---------------------------------------------------------------------

- Raw text -


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