Thread: extern "C"

  1. #1
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446

    extern "C"

    Hello folks,

    Back from my vacation, but extremely busy. You'll be free from me for a couple more weeks
    I got a curious question from a friend to which I didn't know the answer -- and I seem to not have made a proper backup of the Standard and seem to have lost it when my old laptop died. No a very smart thing to do. Looks like I have to buy a new one.

    Does the Standard require the compiler to implement extern "c"?
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    The answer would appear to be yes. For instance:
    Quote Originally Posted by C++ Standard, 7.5 para 3
    Every implementation shall provide for linkage to functions written in the C programming language, "C",
    and linkage to C + + functions, "C++".

  3. #3
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Ireland
    Posts
    8,446
    Ah. I was pretty sure that had to be the case. Thanks tabstop.
    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Extern "C" problem
    By CodeBugs in forum C++ Programming
    Replies: 11
    Last Post: 06-10-2009, 09:14 AM
  2. error C2059 with extern "C"
    By Elysia in forum C++ Programming
    Replies: 7
    Last Post: 03-16-2008, 06:16 PM
  3. extern "C"
    By George2 in forum C++ Programming
    Replies: 19
    Last Post: 02-08-2008, 02:33 AM
  4. Replies: 16
    Last Post: 10-29-2006, 05:04 AM
  5. Unsure of how to properly use extern "C"
    By INFERNO2K in forum C++ Programming
    Replies: 5
    Last Post: 11-11-2005, 11:54 AM