HDTenEightyP/NetNews huggingface dataset:
From: djd@csg.cs.reading.ac.uk (David J Dawkins)
Newsgroups: gnu.g++.help
Subject: Re: G++ and Templates??? (doc request)
Keywords: Template
Date: 12 Oct 92 12:45:49 GMT
Organization: University of Reading

stanton@cs.curtin.edu.au (Wayne Stanton) writes:

>I can't seem to find any documentation on templates with
>g++, does it actually support them?  If so can someone
>please point me in the direction of some documentation.

Yes it does (in V2.2.2), though it's still buggy.  Use the 
ARM [1] for reference.

[1] The Annotated C++ Reference Manual, ELLIS & STROUSTRUP,
    Addison Wesley, ISBN 0-201-51459-1

>Also, is there any other documentation on g++ other than 
>that supplied with the compiler?

The only documentation I have found is in the 1.4x release, which
is at least a year old.

>Any help would be greatly appreciated.

Here is some email I received from Michael Tiemann, having asked 
the same question (almost):

>  We are in the process of updating the documentation.  I don't think it
>  will be ready in 2.3, but it should be ready in a later release.  At
>  the present time we only have 1 full-time documentation person.  We'd
>  hire more, but most people still want free software without paying
>  anything for it.  If more people would pay Cygnus for support (we now
>  have lots of things to buy at prices most people can afford), we'd be
>  able to do a better job.  I know you're at a university and don't have
>  a lot of money, but when you next talk to your friends at BT or
>  Fulcrum or Eurotherm, or any of the other British companies who are
>  trying to "save money", you might pass this suggestion along.
> 
>  Michael
> 

-dave
-- 
djd@csg.cs.rdg.ac.uk
djd@csug.cs.rdg.ac.uk
davidd@integ.uucp
From: Tachen Ni <tcnyyf@caen.engin.umich.edu>
Subject: Q: How to change the byte length of type "double" in g++?
Date: Thu, 08 Oct 92 13:23:11 EDT
Organization: Bioengineering, Univ. of Mich.
X-Useragent: Nuntius v1.1.1d9
X-Xxmessage-Id: <A6F9E75E7002343C@no-name-medsci2.med.umich.edu>
X-Xxdate: Thu, 8 Oct 92 18:25:50 GMT


Recently I found that the default g++ (Version 1.37.1 on Unix
machine) byte length for data type "double" (8 bytes) is not 
enough for my project.  Is there any way that I can change it 
to 12 bytes?  

Reply by e-mail preferably.  Thanks for the help.  


Tachen Ni, Bioengineering Program, Univ. of Mich.
e-mail: tcnyyf@caen.engin.umich.edu
Newsgroups: gnu.g++.help
From: ivpr@sth.frontec.se (Ivan Prochazka[+46-8-6237391])
Subject: G++2.2.2 & sysVr4
Organization: IDK&FRONTEC, PoBox 204, S-191 23 Sollentuna, Sweden
Distribution: gnu
Date: 13 Oct 92 21:10:15 GMT


Is there any way of making  G++2.2.2 & libg++2.2 work properly with the -g 
(debug)flag on sysVr4 ????.

From C++ it produces assembler code correctly, but when this is run thrue 
System-assembler it's said to have undefined symbols. 

We have also installed the gdb-4.6-gcc-patch. We run DELLS sysVr4 issue 2.2.

Is GAS neccesary, Which version in that case ??
	
	Thanks for any help.       Ivan P.

------------------------------------------------------------
Frontec Datakom,  PO Box 204,  S-191 23 Sollentuna,   Sweden
Ph: +46 8 6237391    Fax: +46 8  965510    Memo:extr.xkkivan
From: glenw@remus.rutgers.edu (Glenn Wasserman)
Newsgroups: gnu.g++.help
Subject: Help! Can't link in OS/2!?!?!
Date: 14 Oct 92 18:37:35 GMT
Organization: Rutgers Univ., New Brunswick, N.J.

I'm experimenting with Presentation Manager programming, and I'm
compiling a few simple programs with GCC 2.1. What I need to do is
define a window procdure for export (so my .DEF file has the line
EXPORTS WinProc). The textbook I have says that I need to compile
with the -G2sw and -C options. Firstly, this is for the Microsoft C
5.1 compiler, and secondly, the -G2 means that the code is optimized
for a 286 (and I have OS/2 2.0, which won't run on a 286!). Really,
the only important option that I see here is the w option, that
says I can export functions to be called externally - right?

So how do I do this with gcc? As long as I don't try to export a 
function, I can compile my programs happily with the line
 [c:\gnu\src] gcc -c FILENAME.C
and use the bundled LINK386.EXE that comes with OS/2 (this is what
the readme says to do).

Anyone have any ideas?

-Glenn
From: connelr@CS.ORST.EDU (Ricky)
Newsgroups: gnu.g++.help
Subject: g++/libg++ on hp9k710-hpux
Summary: I can't get it to work right.
Keywords: Need Help
Date: 9 Oct 92 00:52:05 GMT
Distribution: usa
Organization: Oregon State University, Computer Science Dept
Originator: connelr@storm.CS.ORST.EDU


	I am tryint to make libg++ as well as the other assocaited
libraries for a complete g++ installation on an hp9k710 running hpux.
Unfortunately, I can't seem to get it to work.  In the include files, I
keep getting a multiple declaration of abs when it goes to compile
Obstack.c
	Has anyone else had this problem?  Has anyone else solves this
problem?  Can anyone help me to fix this problem?  
	If someone has the compilation done already, I am not above
recieving a copy of the completed library(ies) and include files.
	Thanks for your help,
		Ricky
-- 
Ricky Connell | OSU doesn't think like I do |   connelr@mundania.cs.orst.edu
ObQuote:  "She always brings me what I need/without I beg and sweat and plead/
when we're along at night/waiting for the call/she feeds my skin" QueensRyche
Xref: sparky gnu.g++.help:1311 comp.lang.c++:14654
From: djd@csg.cs.reading.ac.uk (David J Dawkins)
Newsgroups: gnu.g++.help,comp.lang.c++
Subject: Re: g++ install
Date: 7 Oct 92 10:50:04 GMT
Organization: University of Reading

tootill@sde.mdso.vf.ge.COM (Tootill Ed) writes:

> I need expanded installation instructions for g++ compiler.  The README
> file directs me to read the comments at the top of the Makefile for
> flags to use during install, but the Makefile does not contain comments
> about flags.  The README directs me to make several links.  Is this
> necessary or just the programmers style.  Also, do I need to load g++
> at the same directory level as gcc?  
> Rhetorical comment: Why is "free" synonymous with "who needs
> documentation, let them figure it out the hard way".

    Most freely available software has excellent documentation.  You're
    hard pushed in justifying your bitchin'.

    You must have a duff distribution, I had no problems. Are you using the
    gcc2.2.2 release, which also builds g++? I think I just had to type 

	  % ./configure sun4
	  % build_install # or make, some nice script anyway.
> 
>Ed Tootill - tootill@sde.mdso.vf.ge.com

-dave

-- 
djd@csg.cs.rdg.ac.uk
djd@csug.cs.rdg.ac.uk
davidd@integ.uucp
Newsgroups: gnu.g++.help
From: peter@tardis.trl.OZ.AU (Peter K. Campbell)
Subject: Re: Installing g++ (2.2.2) and the g++-include directory
Organization: Telecom Research Labs, Melbourne, Australia
Date: Thu, 8 Oct 1992 02:39:11 GMT

sjm@merlin.anu.edu.au (Stephen Meatheringham) writes:

>Hi All,
>   I am trying to install gcc and g++ (2.2.2) on our Sun Sparcstations running
>SunOS4.1.2.    Everything seems to go fine - no errors or crashing out during 
>the making and installation.  But ... when we try to compile a C++ program I
>get the following :
>sjm@moggie> g++ -c sjm.c
>sjm.c:2: iostream.h: No such file or directory

>Further digging around in the man page suggests there should be a directory
>such as /usr/local/lib/g++-includes which contains the include files.   I'm
>afraid there's no such beastie to be found, all the other include files for
>gcc look okay in /usr/local/lib/gcc-lib/...

>We do have the Sun supplied C++ compiler and that works fine, when you specify
>-I/lusr/lang/SC1.0.1/include.   Do we have to specify the same for g++?  If so
>why the discussion about g++-include in the man page?

This puzzled me for a while too.  The trouble is that, despite the fact that
gcc is a C++ as well as a c compiler, it only comes with c libraries.  If
you want to use the C++ capabilities you need to obtain and compile the
g++ libraries.  The latest version is libg++-2.2.tar.Z  which can be
obtained from "all good ftp sites" (well, the GNU ones at least :-),
e.g. archie.au (plaza.aarnet.edu.au) in the /gnu directory.

This is unfortunately not made clear anywhere in the manual (at least, not
anywhere that I found).

Peter K. Campbell
p.campbell@trl.oz.au
Newsgroups: gnu.g++.help,comp.lang.c++
From: mat@mole-end.matawan.nj.us
Subject: Re: g++ install
Summary: A flame
Organization: :
Date: Wed, 7 Oct 1992 18:09:58 GMT

In article <djd.718455004@reading>, djd@csg.cs.reading.ac.uk (David J Dawkins) writes:
> tootill@sde.mdso.vf.ge.COM (Tootill Ed) writes:
> 
> >			[On FSF code]
> >
> > Rhetorical comment: Why is "free" synonymous with "who needs
> > documentation, let them figure it out the hard way".
 
>     Most freely available software has excellent documentation.  You're
>     hard pushed in justifying your bitchin'.
>     You must have a duff distribution, I had no problems. Are you using the
>     gcc2.2.2 release, which also builds g++? I think I just had to type 
> 	  % ./configure sun4
> 	  % build_install # or make, some nice script anyway.

That isn't documentation, that's a well-debugged interface to the
environment.  Trouble is, the environment is always changing and
there is no such thing as a permanently debugged interface.

Anyhow, my flame concerns the quality of FSF-distributed code.  It's often
brilliant in its execution (pardon the pun) but the craftsmanship of the
coding is nearly the worst that I've seen.  Craftsmanship counts, folks.  C++
class headers should have descriptions of what the frotzenglarkin' thing MEANS.
(The `indent' and `brace' styles don't help, IMO--but that's MO.)

Compare the FSF code with the source code that Sun has made available;
there's a large difference.

Use FSF-provided code by all means, and be grateful for it, too--but expect
to have to pull your hair out whenever something, however small, needs to be
changed.
-- 
 (This man's opinions are his own.)
 From mole-end				Mark Terribile

 mat@mole-end.matawan.nj.us, Somewhere in Matawan, NJ
From: bush@fremont.ssc.gov (Joe Bush)
Newsgroups: gnu.g++.help
Subject: Re: GCC Symbol Demangler Wanted
Keywords: COOL, g++
Date: 11 Oct 92 21:30:38 GMT
Distribution: usa
Organization: Superconducting Super Collider Laboratory

Hello,

	Anyone know about the likelyhood of getting some version of TI's (or GE's simplified
version) of COOL compiled with gcc2.2.2?

	- Joe
Newsgroups: gnu.g++.help
From: wchoe@iss.nus.sg (winston choe)
Subject: g++ support for SUN shared libraries
Reply-To: wchoe@iss.nus.sg
Organization: Institute Of Systems Science, NUS.
Date: Fri, 9 Oct 1992 05:36:09 GMT

I'm sending this again with the right subject heading ...

Does anyone know whether g++ version 1.37.1 supports Sun shared libraries?

It's linker gcc-ld++ keeps complaining that a GLOBAL_OFFSET_TABLE produced in
position independant code for shared libraries, is undefined.

It's definition is contained in iob.o which is automatically linked in by ld.


Regards, Winston Choe.
Newsgroups: gnu.g++.help
Subject: VAX/VMS G++ Compiler Needed?!?!?
From: sabarnett@ualr.edu
Date: 15 Oct 92 16:00:42 GMT
Organization: University of Arkansas at Little Rock

I need help on finding a C++ compiler that works and installs properly on the
VAX/VMS system.   Is G++ my solution?    If so, please tell me where I
can obtain a version for my school to install.

Please respond ASAP.   Thanks, Sean


                                     Sean A. Barnett
S-A-B outta here --->                University College / Educational Services
Click!@@                             Macintosh / DEC-VMS-VAX System
NO CARRIER                           Network Manager / Computer Consultant
Remote Connection Closed             (501)-568-8147
                             ////
     ^          _____      /// /// | University of Arkansas at Little Rock
   ^^^^^        |||||     /// ///  | BITNET:   sabarnett@ualr
||||   ||||     |||||    \\\\\\\\\ | INTERNET: in%"SABARNETT@UALR.EDU"
||||   ||||     |||||   |||||||||||| IDSVAX:   seanbt@ids.net
                                   |
    Quit clowning around and       | " The salvation of mankind lies only
          GO DIAMOND!                  in making everything the concern of
                                       all."   -- A. Solzhenitsyn
Newsgroups: gnu.g++.help
From: jason@jarthur.claremont.edu (Jason Merrill)
Subject: Re: GCC Symbol Demangler Wanted
Organization: Harvey Mudd College, Claremont, CA 91711
Distribution: usa
Date: Sat, 10 Oct 1992 06:57:27 GMT

In article <22836@galaxy.ucr.edu> ezix@troi.ucr.edu (edward j. zix) writes:
>
>Is there a Name demangler available on the net?
>It is kind of a pain to do it by hand.
>i.e. Given something like "Q25Outer5Inner", return "Outer::Inner"

Try cp-dem.c from the gcc distribution.  You need to write your own
front-end, or use mine:

#ifdef STANDALONE
static void
fatal (s, a1, a2)
     char *s;
{
  fprintf (stderr, "demangle: ");
  fprintf (stderr, s, a1, a2);
  fprintf (stderr, "\n");
  exit (1);
}

char *
xmalloc (size)
     int size;
{
  register char *val = (char *) malloc (size);

  if (val == 0)
    fatal ("virtual memory exhausted");
  return val;
}

char *
xrealloc (ptr, size)
     char *ptr;
     int size;
{
  char *result = (char *) realloc (ptr, size);
  if (!result)
    fatal ("virtual memory exhausted");
  return result;
}

main(argc, argv)
     int argc;
     char **argv;
{
    char* s;
    while(--argc) {
	s = cplus_demangle(*++argv);
	if (s) {
	    puts(s);
	    free(s);
	}
    }
}
#endif
Newsgroups: gnu.g++.help
From: sjm@merlin.anu.edu.au (Stephen Meatheringham)
Subject: Re: Installing g++ (2.2.2) and the g++-include directory
Organization: Mt. Stromlo and Siding Spring Observatories
Date: Wed, 7 Oct 92 04:48:12 GMT

In article <1992Oct6.054902.1081@newshost.anu.edu.au>, sjm@merlin.anu.edu.au (Stephen Meatheringham) writes:

|>    I am trying to install gcc and g++ (2.2.2) on our Sun Sparcstations running
|> SunOS4.1.2.    Everything seems to go fine - no errors or crashing out during 
|> the making and installation.  But ... when we try to compile a C++ program I
|> get the following :
|> sjm@moggie> g++ -c sjm.c
|> sjm.c:2: iostream.h: No such file or directory
|> Further digging around in the man page suggests there should be a directory
|> such as /usr/local/lib/g++-includes which contains the include files.   I'm
|> afraid there's no such beastie to be found, all the other include files for
|> gcc look okay in /usr/local/lib/gcc-lib/...
|> 


Thanks to everyone who replied to the above from myself.   Yes.   I needed to
get libg++ and install that.   I now have a happy working g++.    But the
problem stemmed from the fact that I installed gcc 2.2.2 (which includes g++)
and no where in the documentation or installation instructions can I find a 
mention of needing to get libg++ to get it working.

				Stephen Meatheringham
				Mt. Stromlo Observatory
				Private Bag, Weston Creek P.O.
				ACT 2611, AUSTRALIA
				email : sjm@moggie.anu.edu.au

Newsgroups: gnu.g++.help
From: laufer@math.luc.edu (Konstantin Laufer)
Subject: Dispatching bug in g++?
Reply-To: laufer@math.luc.edu
Fcc: +work/teaching
Organization: Loyola University Chicago
Date: Fri, 16 Oct 1992 20:48:50 GMT

Excuse me if this is already a well-known bug, but I don't read this
group regularly.  Consider the following program:

#include <stream.h>

class P {
public:
  virtual void hello() { cout << "hello\n"; }
  void callhello() { hello(); }
};

class C : public P {
public:
  virtual void hello() { cout << "hullo\n"; }
};

void g(P x) { x.callhello(); }	// should call P::hello()

int main() {
  C z;
  z.hello();			// calls C::hello()
  g(z);				// results in an erroneous call to C::hello()!
}

When compiled with g++ 2.2.2 under SunOS 4.1.2, this program produces
the erroneous output
	hullo
	hullo

This is incorrect, since the x is a value parameter, whence
dispatching should be static.

Compilation with AT&T CC correctly results in
	hullo
	hello

Have other people observed this problem?
-- 
-Konstantin [laufer@math.luc.edu]
Newsgroups: gnu.g++.help
From: tito@di.unipi.it (Tito Flagella)
Subject:  [] operator overloading
Organization: Dipartimento di Informatica, Universita' di Pisa
Date: Fri, 16 Oct 1992 14:39:58 GMT


Anybody knows why gcc 2.2.2 compiling:

class PowerProduct {
 private:
  char *pp;
 public:
  PowerProduct() { pp = calloc(PPLength,1); };
  inline int& operator[] (int);
};

inline int& PowerProduct::operator[] (int i)
{
  return pp[i];
}


is giving the error:

tito@olimpo 22> gcc try.C
try.C: In method `int & PowerProduct::operator [] (int)':
try.C:21: cannot convert to a reference type

Tito Flagella.
From: lee@deneb.sw.stratus.com (Lee Cooprider)
Newsgroups: gnu.g++.help
Subject: Problem building libg++-2.2 on HP/UX
Date: 16 Oct 92 14:57:03 GMT
Distribution: gnu
Organization: Stratus Computer, Software Engineering

I am running on a PA-RISC: HP-UX stimpy A.08.07 A 9000/730

I untarred the files, typed "configure hp700" and "make".  After some time,
I encountered 

        rootme=`pwd` ; export rootme; CC="cc `if [ -f ${rootme}/../gcc/gcc ] ;\
        then echo -I${rootme}/../gcc/include ; \
        else echo ; fi`"; export CC; \
        ./utils/gen-params DOLLAR_IN_LABEL=1 >tmp-params.h
    nm:  dummy.o:  cannot open
    nm:  dummy.o:  cannot open
    nm failed to find FUNC in dummy.o!
    ./utils/gen-params: -1: bad number

I have gcc installed on the machine, but not in the adjacent directory; does
this matter?

I would like a solution to the problem, or alternatively, a binary of the
PA-RISC libg++.a, if anyone has a copy available by ftp.
-- 
Lee W. Cooprider				PP-ASEL/IA
Lee_Cooprider@vos.stratus.com			Skylane N2908F "Wiley"
From: lebrun@ll.mit.edu (Steven F. LeBrun)
Newsgroups: gnu.g++.help
Subject: Postscript file of libg++.texinfo
Date: 9 Oct 92 19:45:11 GMT
Expires: 30-Oct-1992
Distribution: gnu
Organization: MIT Lincoln Laboratory, Lexington, MA

Does anyone have a Postscript copy of libg++.texinfo 
(version 2.0 -- last updated April 29, 1992) or know where one is 
available for anonymous ftp?

The only copy of TeX that I have available is a copy of pctex which
is not new enough and/or not powerful enough to convert libg++.texinfo
into a Postscript file.  I did find a copy of TeX 3.14 for UN*X but
unfortunately, the install instructions are in TeX format and there
were no postscript copies of the instructions.  Catch 22 documentation.
--

+--------------------------------------------------------------------------+
| Steven F. LeBrun             |      MIT Lincoln Laboratory, Group 91     |
|                              |        244 Wood Street, Room LI-136       |
| lebrun@ll.mit.edu (Internet) |          Lexington, MA 02173-9108         |
| lebruns@merlin    (internal) |  Phone:(617)-981-5742, FAX:(617)-981-0991 |
+--------------------------------------------------------------------------+
|"Hard as lightning, soft as candlelight;                                  |
|                    Dare you trust the Music of the Night?" - The Phantom |
+--------------------------------------------------------------------------+
Newsgroups: gnu.g++.help
From: clif@clif.ypsi.mi.us ( Clif Flynt)
Subject: gcc 2.2.2 fails to compile libg++ - error 6
Organization: Chaos & Confusion, Entropy Division
Distribution: na
Date: Mon, 12 Oct 1992 05:13:00 GMT

I recently compiled gcc 2.2.2 on my sysv4 i386.  

I can compile the libiberty.a files OK, and even a silly test
program, but, when trying to compile libg++, it fails in the
g++ specific files (LogNorm.C, and streambuf.C are as far as I've gotten).

If someone can tell me I obviously did something stupid, or where I can
look to figure out what an 'Error 6' is, I'd appreciate it.

If it helps, I'm using the AT&T make.

My test program follows, then the output from the make that fails.

................................................

extern "C"
{
#include <stdio.h>
}

class test
{
public:
test(){printf("Test Constructor\n");}
};

main (int ac, char *av[])
{
test tst;
}

................................................


Output of Make follows:

............................................................................

gcc -g -nostdinc++ -I.. -I. -I./../iostream -I./../g++-include -c LogNorm.cc

gcc: Internal compiler error: program cc1plus got fatal signal 6

make: fatal error.

make: fatal error.

............................................................................

Thanks,

-- 
 -------------------------------- Clif Flynt --------------------------------
  --------- uunet!hela!clif!clif ------------ clif@clif.ypsi.mi.us ---------
   -- What I write means what I mean it to mean.  Your mileage may vary. --
Newsgroups: gnu.g++.lib.bug
From: bartm@cv.ruu.NL (Bart Muyzer)
Subject: Porting libg++ to HP9000 s700: HELP needed
Organization: University of Utrecht, 3D Computer Vision Research Group
Distribution: gnu
Date: Fri, 16 Oct 1992 10:47:39 GMT

Dear libg++ experts,

Currently I'm porting libg++ to the HP9000 s700. This machines have the HPPA
1.1 architecture. I did the following steps:
	1. configure hp9k700 --prefix=/usr/lib
	2. Perform the patches posted by Tim Gurbick (libg++/Makefile and
	   libg++/utils/gen-parms)
	3. make CC=gcc CFLAGS=-O all
		All stuff builds fine.
	4. make CC=gcc CFLAGS=-O check
		This is where trouble starts.

I get the following error when 'make check' is executed in libg++/tests:

		[...]
	        rm -f *.out
	        ./tFile < ./tFile.inp > tFile.out 2>&1
	        diff -b ./tFile.exp tFile.out
	        ./tObstack < ./tObstack.inp > tObstack.out 2>&1
	        diff -b ./tObstack.exp tObstack.out
	        gcc  tString.o -o tString ../libg++.a
	ld: Unsatisfied symbols:
	   RXdouble (code)
	   RXalpha (code)
	   RXwhite (code)
	   RXint (code)
	collect: /bin/ld returned 1 exit status
	*** Error code 1
	
	Stop.
	
I discovered the RX* stuff comes from libg++/src/Regex.cc so I suppose it
should be in libg++ which is linked with tString.o.

What worries me is that I built libg++ on a Sun Sparc-1 with SunOS 4.1.1 and
that it all worked fine.

Could some kind soul please tell me what I'm doing wrong??
Thanks in advance,

						>] Bartm [<
-- 
Bart Muyzer, Systems and Network Administrator, [NIC-Whois handle: BJM9]
     3D Computer Vision, Room E02.222, University Hospital Utrecht,
     Heidelberglaan 100, 3584 CX Utrecht, Holland. E-mail: bartm@cv.ruu.nl
     Fax: +31-30-513399. Tel: +31-30-506711 (w), +31-3402-52157 (h). 


Newsgroups: gnu.g++.lib.bug
From: brendan@cygnus.com (Brendan Kehoe)
Subject: [fgs@kepler.unh.edu : fstream/open()/close()/can'tfindfile]
Reply-To: brendan@cygnus.com
Organization: GNUs Not Usenet
Distribution: gnu
Date: Wed, 14 Oct 1992 02:04:56 GMT

------- Start of forwarded message -------
From: fgs@kepler.unh.edu ( F r e D  S l a m A )
Subject: fstream/open()/close()/can'tfindfile
To: bug-g++@prep.ai.mit.edu
Date: Mon, 12 Oct 1992 14:23:03 GMT
Newsgroups: gnu.g++.bug
Organization: University of New Hampshire  -  Durham, NH

	Known bug? It would seem so, but don't know, so I am posting anyway:

	This code:



- -------------------------
#include <iostream.h>
#include <fstream.h>

const fileCnt = 5;
char *fileTabl [fileCnt] = {"file0", "file1", "file2", "file3", "file4"};


main()
{
	ifstream inFile;
	char c;

	for (int i=0; i < fileCnt; i++)
	{

		inFile.open(fileTabl[i], ios::in);


//		cerr << "File: " << inFile;
		if ( inFile.fail() )
		{
			cerr << "File " << fileTabl[i] << " can't be opened" 
							<< endl;
		}
		else
		{
			while ( inFile.get (c))
			{
				cout << c;
			}
		
			cout << endl;
			inFile.close();
		}
	}
}
- -------------------------

	.. will only process the first file, and return file open
	failure on subsequent opens... Only on g++. I ran the same
	code though the AT&T 2.1.0 compiler and it worked fine. This example
	can also be found in Stanley B. Lippman C++ Primer.



													-Fred
- -- 
 ===============================================================================
 Frederick G. Slama at >>>>>>>>>>>>>| slama@ctron.com (just a CO-OP)
 The University of New Hampshire <<<| fgs@kepler.unh.edu   F_SLAMA@unhh.unh.edu
 ===============================================================================

------- End of forwarded message -------

Newsgroups: gnu.g++.lib.bug