[CM] s7 - howto use s7_define_function_star in a C++ project.

Ralf Mattes rm at seid-online.de
Thu Feb 12 07:39:31 PST 2015


On Thu, Feb 12, 2015 at 10:42:31AM -0500, Jason Ripley wrote:

> should.  However, I cannot seem to find the correct invocation in C++ to
> make it work.  I was wondering if it needs something like extern "C", which
> I tried to no avail.

Yes, when compiling with a C++ compiler you need to declare your calls into
C as "extern C" otherwise you'll be the victim of name mangling.

 Cheers, RalfD


Yes, when compiling with a C++ compiler you need to declare your calls into
C as "extern C" otherwise you'll be the victim of name mangling.

 Cheers, RalfD



More information about the Cmdist mailing list