C++ function accessed from C

Tkil tkil@scrye.com
Tue Dec 12 00:56:00 GMT 2000


>>>>> "Rafael" == Rafael Rodríguez Velilla <rrv@tid.es> writes:

Rafael> How can I link a C++ function with a program writen in C?

extern "C" { ... }

note that this probably belongs on comp.lang.c++ or similar; the gcc
lists are generally for gcc-specific issues.  also, consider searching
common FAQs before posting:

   http://geneura.ugr.es/~jmerelo/c++-faq/mixing-c-and-cpp.html#[29.6 ]

t.


More information about the Gcc mailing list