From: klaus@manuel.physik.fu-berlin.de (Wolfram Klaus)
Subject: Re: cxx annoyance
Date: 19 Jun 01 07:24:23 GMT [thread overview]
Message-ID: <klaus.992935463@manuel.physik.fu-berlin.de> (raw)
In-Reply-To: 992888612@f1.n7600.z242.fido.de
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
next prev parent reply other threads:[~2001-06-19 7:24 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
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 [this message]
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