This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: C linkage when using C++
- From: Joe Buck <jbuck at synopsys dot com>
- To: "Altenau, Maureen D "CECOM RDEC C2D <Maureen dot Altenau at mail1 dot monmouth dot army dot mil>
- Cc: gcc at gcc dot gnu dot org
- Date: 06 Dec 2001 16:29:46 -0800
- Subject: RE: C linkage when using C++
- References: <EF40D5BF9C48D411AA8E0008C7913EFB53F37A@mail15.monmouth.army.mil>
On Tue, 2001-12-04 at 07:17, Altenau, Maureen D CECOM RDEC C2D wrote:
> Hi,
>
> I have attached two of the files that are creating errors. The error I get
> is
> "Template with C Linkage". For some reason, the compiler thinks there is C
> Linkage, which if that is the case, causes certain C++ features to be
> flagged as errors. This is the case with templates. This is the first time
> I have used g++. I thought that I may need to set a compiler option or a
> compiler directive to tell the compiler that there is no c linkage. I did
> not see anything in the code such as extern "C" to indicate C linkage.
Sorry, but this isn't a complete test case: the command line isn't given
and there are some headers that aren't included. Because of this I
can't duplicate the error. Please file a complete bug report; you can
find instructions on http://gcc.gnu.org/. Please remember that in order
to help you, someone has to be able to duplicate *exactly* what you did.
The easiest way to make sure that all needed sources are present is to
send preprocessor output; also don't forget to send the exact command
line you typed and the exact error messages you got, not a paraphrase.