Ah, so just to give this a wee update, extern is cool for C code but ‘new’ isn’t cricket whether you wrap it or not, and it isn’t ok with g++ at all unless you set the language flag to c. gcc compiles it fine, but it’s definitely against the C++ standard, the only way I could get it to compile was to dig through the files and rename everything.