Binding error with Objective Sharpie

Hello,

I am trying to use the Objective Sharpie 2.1.6 to generate the bindings but having some issues. Hope someone can point me to the right direction.

sharpie bind -output Binding -sdk iphoneos8.3 -scope xxx/include xxx/include/header.h -c -v -I xxx/include

Error:

In file included from xxx/include/Core/Core.h:10:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cstring:60:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__config:227:9: error: unknown type name '__char16_t' typedef __char16_t char16_t;

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__config:360:14: error: expected ';' after top level declarator namespace std {

Thanks.

Answers

  • EsperadoceEsperadoce USMember
    edited May 3

    Hello,
    I know that this thread is old but if it can help someone.
    to compile the c++ code in sharpie you should use the -c objective-c++ at the end of the command and add all the clang and c++ flags that you need for you project

    Regards,

Sign In or Register to comment.