This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: C linkage when using C++


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]