Mail Archives: djgpp/1997/02/20/04:15:03
From: | Matthew Walker <walkerma AT flyernet DOT udayton DOT edu>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Need help with Libgpp / STL in DJGPP
|
Date: | Wed, 19 Feb 1997 18:29:13 -0500
|
Organization: | Just Me
|
Lines: | 50
|
Message-ID: | <330B8CC9.2BA9@flyernet.udayton.edu>
|
NNTP-Posting-Host: | n2dhcp272.lexis-nexis.com
|
Mime-Version: | 1.0
|
CC: | uwalkmc
|
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. 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.
73624 DOT 435 AT compuserve DOT com |
walkerma AT flyernet DOT udayton DOT edu | RUSH - "Witch Hunt"
- Raw text -