From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,29614d1eab99e09f X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-06-18 19:30:41 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!news-out.cwix.com!newsfeed.cwix.com!intgwpad.nntp.telstra.net!news-server.bigpond.net.au!not-for-mail From: Mark Garrett Newsgroups: comp.unix.tru64 Subject: Re: cxx annoyance Organization: Garetech Computer Solutions Message-ID: References: <992888612@f1.n7600.z242.fido.de> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.02.2022 Date: Tue, 19 Jun 2001 02:30:39 GMT NNTP-Posting-Host: 144.132.244.163 X-Complaints-To: news@bigpond.net.au X-Trace: news-server.bigpond.net.au 992917839 144.132.244.163 (Tue, 19 Jun 2001 12:30:39 EST) NNTP-Posting-Date: Tue, 19 Jun 2001 12:30:39 EST Xref: archiver1.google.com comp.unix.tru64:2552 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 ;)