C linkage when using C++
Joe Buck
jbuck@synopsys.com
Thu Dec 6 16:47:00 GMT 2001
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.
More information about the Gcc
mailing list