delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/23/07:50:58

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Help installing the C++ class libraries.
Date: Tue, 19 Aug 1997 20:59:27 +0000
Organization: Two pounds of chaos and a pinch of salt
Lines: 31
Message-ID: <33FA092F.5A47@cs.com>
References: <01bca8b7$03d4f1e0$3f86d2c1 AT ojzxnyqp>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp207.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Atte Koivula wrote:
> 
> I just deleted and DJGPP and I'm in the process of re-installing it, but I
> can't seem to figure out how to install the C++ class libraries, so do I
> need to copy all the header-files to /include or is there a better way?

If you unzip the DJGPP packages correctly, preserving the directory
structure, then all libraries, headers, and executables will go in the
correct place and you should NOT need to move or change anything.

First, make sure that you have set the DJGPP environment variable
correctly as instructed in the 'readme.1st' file.

Second, make sure that you are compiling your program as C++.  gcc
automatically recognizes files with the .C, .cc, and .cpp extensions as
C++, and compiles them accordingly.  Case is important!

Third, if your problem is that the C++ libraries aren't being linked,
then you forgot to add them to the gcc command line.  Either add
'-liostream' to the end of your gcc command line, or use the 'gxx'
program instead of gcc to compile C++ code.

hth

-- 
---------------------------------------------------------------------
|      John M. Aldrich       | "A generation which ignores history  |
|       aka Fighteer I       | has no past--and no future."         |
|   mailto:fighteer AT cs DOT com   |                                      |
| http://www.cs.com/fighteer |                - Lazarus Long        |
---------------------------------------------------------------------

- Raw text -


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