cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/26/10:00:22

From: Tron <l42794 AT alfa DOT ist DOT utl DOT pt>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: c++ templates and djgpp how?
Date: Tue, 26 May 1998 14:42:24 +0100
Organization: Instituto Superior Tecnico
Lines: 30
Message-ID: <Pine.OSF.3.96.980526143231.17780D-100000@alfa.ist.utl.pt>
References: <356A8CD2 DOT 5D95DF66 AT BigPond DOT com>
NNTP-Posting-Host: alfa.ist.utl.pt
Mime-Version: 1.0
In-Reply-To: <356A8CD2.5D95DF66@BigPond.com>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On Tue, 26 May 1998, Dominique Louis wrote:

> Hi all,
> Being a newbie to the world of DJGPP, I was wondering how I go about
> using templates as in Standard Template Library functions and algos. in
> my code. I tried including <list.h> to create some linked list templates
> but I get an error saying that list.h does not exist. Does ths STL have
> be installed separately or am I doing something really stupid

   be caurfull beacuse if you put <> outside of list.h you are meaning
that this .h file its in your default library directory... if you put in
the same directory of your main program you do this: #include "list.h"

   about templates:
      i am currently working on something that uses templates, list to say
better... and templates must all stand in a .h file, i didn't find any
info about this but if you put .h just with your declarations with
templates and implement those declarations in a .cc file, in C++ and
DJGPP, the files .cc that uses .h doesn't recognize the methods declared
in .h file...

   the stl have a syntax difficult and the examples that i have they
suck!!!

ps: try to put "" to your .h files and <> to your .h library


   -------------------------------------------
end of line.

- Raw text -


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