{"action":"created","issue":{"url":"https://api.github.com/repos/arrayfire/arrayfire_rust/issues/2","labels_url":"https://api.github.com/repos/arrayfire/arrayfire_rust/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/arrayfire/arrayfire_rust/issues/2/comments","events_url":"https://api.github.com/repos/arrayfire/arrayfire_rust/issues/2/events","html_url":"https://github.com/arrayfire/arrayfire_rust/issues/2","id":79036442,"number":2,"title":"Rust Bindgen Fails","user":{"login":"jramapuram","id":8204807,"avatar_url":"https://avatars.githubusercontent.com/u/8204807?v=3","gravatar_id":"","url":"https://api.github.com/users/jramapuram","html_url":"https://github.com/jramapuram","followers_url":"https://api.github.com/users/jramapuram/followers","following_url":"https://api.github.com/users/jramapuram/following{/other_user}","gists_url":"https://api.github.com/users/jramapuram/gists{/gist_id}","starred_url":"https://api.github.com/users/jramapuram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jramapuram/subscriptions","organizations_url":"https://api.github.com/users/jramapuram/orgs","repos_url":"https://api.github.com/users/jramapuram/repos","events_url":"https://api.github.com/users/jramapuram/events{/privacy}","received_events_url":"https://api.github.com/users/jramapuram/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-05-21T15:06:15Z","updated_at":"2015-06-04T14:47:02Z","closed_at":null,"body":"Tried using https://github.com/crabtw/rust-bindgen but fails when pulling in ostream:\r\n\r\n\t\tjramapuram@gauss ~/p/a/include>\r\n\t\t../../rust-bindgen/target/debug/bindgen -l lib/libafcuda.dylib -I /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1 -o arrayfire.rs arrayfire.h\r\n\t\tarrayfire.h:10:9: warning: #pragma once in main file\r\n\t\t/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__config:227:9: error: unknown type name '__char16_t'\r\n\t\t/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__config:228:9: error: unknown type name '__char32_t'\r\n\t\t/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__config:360:1: error: unknown type name 'namespace'\r\n\t\t/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__config:360:14: error: expected ';' after top level declarator\r\n\t\t/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__config:538:1: error: unknown type name 'template'\r\n\t\t/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__config:538:10: error: expected identifier or '('\r\n\t\t/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__config:539:1: error: unknown type name 'template'\r\n\t\t/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/__config:539:10: error: expected identifier or '('\r\n\t\t/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iosfwd:96:1: error: unknown type name 'namespace'\r\n\t\t/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/iosfwd:96:1: error: expected ';' after top level declarator\r\n\t\t/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cstring:67:1: error: unknown type name 'namespace'\r\n\t\t/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cstring:67:1: error: expected ';' after top level declarator\r\n\t\t/usr/include/wctype.h:122:1: error: unknown type name 'wctrans_t'\r\n\t\t/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cwctype:61:1: error: unknown type name 'namespace'\r\n\t\t/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cwctype:61:1: error: expected ';' after top level declarator\r\n\t\t/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cstddef:44:1: error: unknown type name 'namespace'\r\n\t\t/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cstddef:44:1: error: expected ';' after top level declarator\r\n\t\t/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/new:132:38: error: expected ';' after top level declarator\r\n\t\t/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/new:133:30: error: variable has incomplete type 'void'\r\n\t\tfatal error: too many errors emitted, stopping now [-ferror-limit=]"},"comment":{"url":"https://api.github.com/repos/arrayfire/arrayfire_rust/issues/comments/108921845","html_url":"https://github.com/arrayfire/arrayfire_rust/issues/2#issuecomment-108921845","issue_url":"https://api.github.com/repos/arrayfire/arrayfire_rust/issues/2","id":108921845,"user":{"login":"jramapuram","id":8204807,"avatar_url":"https://avatars.githubusercontent.com/u/8204807?v=3","gravatar_id":"","url":"https://api.github.com/users/jramapuram","html_url":"https://github.com/jramapuram","followers_url":"https://api.github.com/users/jramapuram/followers","following_url":"https://api.github.com/users/jramapuram/following{/other_user}","gists_url":"https://api.github.com/users/jramapuram/gists{/gist_id}","starred_url":"https://api.github.com/users/jramapuram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jramapuram/subscriptions","organizations_url":"https://api.github.com/users/jramapuram/orgs","repos_url":"https://api.github.com/users/jramapuram/repos","events_url":"https://api.github.com/users/jramapuram/events{/privacy}","received_events_url":"https://api.github.com/users/jramapuram/received_events","type":"User","site_admin":false},"created_at":"2015-06-04T14:47:02Z","updated_at":"2015-06-04T14:47:02Z","body":"@pavanky : I just did. It generates fine now! However it looks like the bindgen is [pulling in a va_list](https://github.com/jramapuram/rust_arrayfire/blob/master/src/arrayfire.rs) which is a c++ dependency:\r\n```rust\r\npub type __darwin_va_list = __builtin_va_list;\r\n```"}}