Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: Mark Garrett <Mark.Garrett@wedontwantyourspam.com.au>
Subject: Re: cxx annoyance
Date: Tue, 19 Jun 2001 02:30:39 GMT	[thread overview]
Message-ID: <B754F4E0.187F5%Mark.Garrett@wedontwantyourspam.com.au> (raw)
In-Reply-To: 992888612@f1.n7600.z242.fido.de

in article 992888612@f1.n7600.z242.fido.de, Tobias Ernst at
tobi@bland.fido.de wrote on 19/06/2001 06:40:

> Hallo All!
> 
> The Compaq cxx compiler (version 6.4, but olders had it as well) on
> Tru64 has the following very annoying feature: if I do
> 
> #include "filename.h"
> 
> and there is a file called "filename.cc", the compiler silently
> includes "filename.cc" in addition to filename.h into my compilation
> unit, in situations where the template instantiation code thinks that
> this might be useful.

Interesting.
mark@ned> cxx -V
Compaq C++ V6.3-005 for Compaq Tru64 UNIX V5.1 (Rev. 732)
Compiler Driver V6.3-005 (cxx) cxx Driver
mark@ned>
mark@ned> cxx -c main.cc
mark@ned> cat main.cc
#include "t.h"

main()
{
        int ii;

        ii = 3;
}
mark@ned> cat t.h
struct c {
        int i;
} C;


mark@ned> cat t.cc
#error "this file should not be included"
mark@ned>

It doesn't look like V6.3-005 has this problem. Guess I'll have to upgrade.
I can't wait to be caught with this little trick :)

    Cheers
        Mark ;)



  reply	other threads:[~2001-06-19  2:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-18 19:40 cxx annoyance Tobias Ernst
2001-06-19  2:30 ` Mark Garrett [this message]
2001-06-19  8:50   ` Tobias Ernst
2001-06-19  6:02 ` Pentyern
2001-06-19  8:51   ` Tobias Ernst
2001-06-19 15:56     ` Pentyern
2001-06-19 19:29     ` Tim Mooney
2001-06-19  7:24 ` Wolfram Klaus
2001-06-19  8:54   ` Tobias Ernst
2001-06-27 10:53   ` Tobias Ernst
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox