Re: Linking C and C++ together

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Daniel,

Let's say I have a C function:

int DoSomething(int i, char c, double d);

In C++, this function is declared:

extern "C" int DoSomething(int i, char c, double d);

Or as:

extern "C" {
int DoSomething(int i, char c, double d);
}

Are the C functions that have C linkage declared this way in the C++ translation units?

HTH,
--Eljay


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux