Name mangling in OpenCL.dll

Discussion created by mael on Sep 29, 2009
Latest reply on Oct 24, 2009 by mael


I'm using OpenCL from another language (Delphi). When importing the API-functions from OpenCL.dll the name-mangling requires me to specify the mangled name instead of the real function name. Since name-mangling is compiler dependent and it differs from the function names found in the header files it makes importing more fragile than necessary.

Please disable it by using something like

#ifdef __cplusplus
extern "C" {

// exports go here
#ifdef __cplusplus

Regards, Maël Hörz