• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
error: template with C linkage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

error: template with C linkage


  • Subject: error: template with C linkage
  • From: Dave Camp <email@hidden>
  • Date: Thu, 15 Jul 2004 16:59:23 -0700

I'm getting a lot of errors like the following in my project (I'm porting a Windows app....)

/usr/include/gcc/darwin/3.3/c++/bits/localefwd.h:90: error: template with C linkage

/usr/include/gcc/darwin/3.3/c++/bits/functexcept.h:40: error: previous declaration of `void std::__throw_bad_exception()' with C++ linkage
/usr/include/gcc/darwin/3.3/c++/bits/functexcept.h:40: error: conflicts with new declaration with C linkage


[ repeats another 800 times... ]

I've done some google searching on those errors and I cannot seem to find an explanation of what the compiler is unhappy about. I thought it might be complaining about trying to use templates in a C file, but all of my source files are .cpp files and I've also tried changing the target settings to for C++ always on, but that did not help.

What is gcc trying to tell me?

Thanks,
Dave
---
It's not denial. I'm just very particular about the reality I choose to accept. -Calvin
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.



  • Prev by Date: Re: Setting up CVS so it actually works!
  • Next by Date: Re: Gdb reports param mismatch for method with no params
  • Previous by thread: Using libxml
  • Next by thread: Error while loading modules
  • Index(es):
    • Date
    • Thread