[PD] [PD-dev] question about building externals on Linux

Mathieu Bouchard matju at artengine.ca
Mon Dec 27 07:55:33 CET 2010


On Sun, 26 Dec 2010, Hans-Christoph Steiner wrote:

> I don't know about C++, but in C that sounds like the setup function is 
> declared as 'static'.

C++ symbols aren't like C symbols, as they contain namespace information, 
type information (of function arguments), etc. They begin with "_Z".

If you want to have spectdelay_tilde_setup in C++, you have to use the 
«extern "C"» prefix, to prevent C++ from prepending "_Z" and appending 
what it takes to say "it's a void function"...

  _______________________________________________________________________
| Mathieu Bouchard ---- tél: +1.514.383.3801 ---- Villeray, Montréal, QC


More information about the Pd-list mailing list