This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: C++ function accessed from C


>>>>> "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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]