delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/26/18:17:07

From: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: STL & DJGPP
Date: 24 Oct 1997 05:33:42 GMT
Organization: The National Capital FreeNet
Lines: 32
Message-ID: <62pbvm$993@freenet-news.carleton.ca>
References: <344f2603 DOT 962825 AT news DOT polito DOT it>
Reply-To: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
NNTP-Posting-Host: freenet2.carleton.ca
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Chtulhu (I DOT Vighetto AT avigliana DOT alpcom DOT it) writes:
> I woul try STL programming.
> Tthere's some problem with DJGPP?
> Which (free) implementatio of STL works best with our compiler and
> where is downloadable?

Try the STL that comes with the C++ components of DJGPP. They should show
up in %DJDIR%/lang/cxx. Just compile something like:

#include <iostream.h>
#include <list.h>      // An STL header

int main (void) {
  list<int> z;
  list::iterator j;
  z.push_front(3);
  z.push_front(7);
  z.push_front(12);
  j=z.begin();
  cout << *j << endl;
  j++;
  cout << *j << endl;
  j++;
  cout << *j << endl;
  return 0;
}
--
    .*.  Where feelings are concerned, answers are rarely simple [GeneDeWeese]
 -()  <  When I go to the theater, I always go straight to the "bag and mix"
    `*'  bulk candy section...because variety is the spice of life... [me]
Paul Derbyshire ao950 AT freenet DOT carleton DOT ca, http://chat.carleton.ca/~pderbysh

- Raw text -


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