delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/15/16:52:03

Newsgroups: comp.lang.c++,comp.os.msdos.djgpp,gnu.g++.help
From: Robin Paterson <Robin DOT Paterson AT dundee DOT ncr DOT com DOT org>
Subject: Re: templates
Message-ID: <337AF87A.69F6@dundee.ncr.com.org>
Sender: news AT falcon DOT daytonoh DOT ncr DOT com (News administrative Login)
Reply-To: Robin DOT Paterson AT dundee DOT ncr DOT com DOT org
Organization: NCR Financial Systems
References: <01bc5fc6$6d16b7e0$0b88099a AT dennis DOT worldonline DOT nl> <3379DF98 DOT 167E AT cs DOT fiu DOT edu>
Mime-Version: 1.0
Date: Thu, 15 May 1997 11:50:18 GMT
Lines: 32
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

zhiqiang ma wrote:
> 
> Please merge your cstack.h and cstack.cc into a single file and include
> this file in your teststack.cc file. then recompile.

	NO !!
	This defeats any code encapsulation !!!!
 
> This time you will be successful.
> 
> I think this is a petty bug of g++. If you compile your program using
> another compiler, say Sun's C++ compiler, there will be no errors
> reported.

	This is **NOT** a bug !!
	g++ provides 4 or 5 ways of template instantiation.
	They're all in the manual or info files.

	If you've got a g++ with the repo patch, _then_ it
	will work like the Sun compiler, or the NCR C++ compiler
	as these guys use a repository.
	I don't know if DJ put the repo patch in his version.

-- 
---+---                                                              
---+---
    Robin Paterson                 email: Robin DOT Paterson AT dundee DOT ncr DOT com
    NCR Financial Systems Ltd.     voice: 44 1382 592139  (GMT+0)
    'When you're a professional pirate.... you don't have to wear a
suit'
---+---                                                              
---+---

- Raw text -


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