extern "C"

This is a discussion on extern "C" within the C++ Programming forums, part of the General Programming Boards category; Hello folks, Back from my vacation, but extremely busy. You'll be free from me for a couple more weeks I ...

  1. #1
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,436

    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"?
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    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,185
    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
    Portugal
    Posts
    7,436
    Ah. I was pretty sure that had to be the case. Thanks tabstop.
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    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, 01:33 AM
  4. Replies: 16
    Last Post: 10-29-2006, 04:04 AM
  5. Unsure of how to properly use extern "C"
    By INFERNO2K in forum C++ Programming
    Replies: 5
    Last Post: 11-11-2005, 10:54 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21