www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/20/08:26:14

From: uwalkmc AT lexis-nexis DOT com (Matthew Walker)
Newsgroups: comp.os.msdos.djgpp
Subject: Need Help with libgpp / STL for DJGPP
Date: 20 Feb 1997 05:10:36 GMT
Organization: LEXIS-NEXIS, Dayton OH
Lines: 50
Message-ID: <5egmcc$8ms@mailgate.lexis-nexis.com>
NNTP-Posting-Host: psc7102.lexis-nexis.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi. I am pretty new to DJGPP and GNU - I've been using DJGPP C for a
couple of months now. I have a few years experience using C++ with MFC 
and (recently) Rogue Wave (on UNIX). I know I am not stupid, because 
I actually make a living at this. However: I am having a hell of a 
time understanding how to a) install and b) use both the libgpp classes 
and the STL in DJGPP.

I downloaded the recommended files (lgp271b.zip, gcc2721b.zip, and
gpp2721b.zip - and a bunch of others) from Simtel and installed the 
whole shooting match. I even have the Info entries for libgpp.a 
installed. I can't seem to connect what I read in the docs with what
I see in the header files. I know there is some connection, but I'm 
not there yet.

For example:
The Info discussion on the libgpp class "set" describes different set
implementations (such as XPSet and OXPSet), and then tells you how to 
create a set object generically, without either passing in template 
parameters or telling me how to instantiate one of the specific 
implementations. Here is the entry from the Info doc:

   `Set a; or Set a(int initial_size);'
      Declares a to be an empty Set. The second version is allowed in
      set classes that require initial capacity or sizing specifications.

This doesn't mention anything about instantiation with specific classes,
such as the string class, or even char*. More to the point, it doesn't
mention a key template parameter called "class Compare", which I assume
is necessary to implement searches and equality/inequality operations.

Same goes for the map class and other template based classes in libgpp.
I can't find *any* docs on the STL. I feel like I've missed a big part
of DJGPP that I should have, but I don't know what. What am I missing
that will tell me how to use libgpp and STL? I am extremely 
grateful to have this FREE development environment at my disposal, 
but I have to be able to use it to get anything out of it.

Somebody please help me if you can. I'm trying to use DJGPP on my 
class project, and I'm frustrated. I'm just about desparate enough
to go back to MFC (now that should get some attention! ;-) ).

Thanks in advance.

 --------------------------------------------------------------
  Matthew Walker     LEXIS-NEXIS    | Ignorance and predjudice
  Software Engineer  Dayton, OH     | and fear walk hand in 
  Matthew DOT Walker AT lexis-nexis DOT com    | hand.
  walkerma AT flyernet DOT udayton DOT edu     |      RUSH - "Witch Hunt"
 --------------------------------------------------------------

- Raw text -


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