This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C++ function accessed from C
- To: Rafael "Rodríguez" Velilla <rrv at tid dot es>
- Subject: Re: C++ function accessed from C
- From: Tkil <tkil at scrye dot com>
- Date: 12 Dec 2000 01:56:27 -0700
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- References: <3A350557.C9A47CB7@tid.es>
- Reply-To: Tkil <tkil at scrye dot com>
>>>>> "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.