How to get rid of "Template with C linkage" error when compiling with -isystem flag ?
JEROME HURSTEL
jhurstel at markem-imaje.com
Thu Mar 4 09:44:04 UTC 2010
Hi,
I currently work on an eCos-based application with Code Sourcery 4.1.
I have put -isystem option flag of the m68k-g++ compiler on eCos include paths not to be polluted by those specific warnings. And I got lots of "Template with C linkage" errors !!!
This behaviour seems to be as expected. The compiler user's guide says :
On very old systems, some of the pre-defined system header directories get even more
special treatment. GNU C++ considers code in headers found in those directories to be
surrounded by an extern "C" block. There is no way to request this behavior with a
'#pragma', or from the command line.
Is there a way to inhibit this behaviour ?
Best regards,
Jérôme Hurstel
--------------------------------------------------------------------------
This e-mail, including any attachments, is transmitted for the sole use of the intended recipient and may contain information that may be privileged and confidential. If you are not the intended recipient, you are hereby notified that any use, disclosure, dissemination, distribution or copying of this e-mail or the information contained herein is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender by reply e-mail and then delete the original message from your system. Any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company.This is your responsibility to ensure this-e-mail and any attachments are virus free. The company accepts no liability for any damage caused by any virus transmitted by this e-mail.
Markem-Imaje S.A.S. 9, rue Gaspard Monge F - 26500 Bourg-lès-Valence S.A.S. au capital de 22 000 000 euros 353 282 106 RCS Romans
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/coldfire-gnu-discuss/attachments/20100304/fd706214/attachment.html>
More information about the coldfire-gnu-discuss
mailing list