From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fa528,29614d1eab99e09f X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-06-19 00:27:34 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!manuel.physik.fu-berlin.DE!not-for-mail From: klaus@manuel.physik.fu-berlin.de (Wolfram Klaus) Newsgroups: comp.unix.tru64 Subject: Re: cxx annoyance Date: 19 Jun 01 07:24:23 GMT Organization: Freie Universitaet Berlin Message-ID: References: <992888612@f1.n7600.z242.fido.de> NNTP-Posting-Host: manuel.physik.fu-berlin.de (160.45.33.136) Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: fu-berlin.de 992935652 10242125 160.45.33.136 (16 17 19) X-Orig-Path: manuel.physik.fu-berlin.de!klaus X-Newsreader: NN version 6.5.0 #2 (NOV) Xref: archiver1.google.com comp.unix.tru64:2555 tobi@bland.fido.de (Tobias Ernst) writes: t >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. >Is there *any* way to turn this annyoing feature off, other than >renaming filename.cc to a name where the Compiler will not find it? Sure, there is and it's in the man page... -[no]implicit_include Effective only with Version 6.0 and later. Enable or disable inclusion of source files as a method of finding definitions of template enti- ties. Implicit inclusion is enabled by default, and it is disabled when compiling with -E or -P. The search rules for finding template definition files are the same as for include files. This option also defines the macro __IMPLICIT_INCLUDE_ENABLED. You might want to dis- able implicit inclusion with the -ms and -std ms options to match the behavior on Microsoft C++ more closely. [...] >Viele Gr��e, >Tobias Ebenso, Wolfram -- Wolfram Klaus (Wolfram.Klaus@physik.fu-berlin.de) Free University Berlin Physics Department