Closed jice-nospam closed 6 years ago
AFAIK mvsc uses different ABI, so it's probably the reason. I'm not sure though
@vitvakatu exactly.
According to this: https://github.com/rust-lang-nursery/rust-bindgen/issues/849, thiscall
calling convention, used by msvc, is not yet implemented in rust.
So bindgen could generate bindings with --target=i686-pc-windows-msvc
, but you will need some very nightly rust(not sure that it even exist) to use it. And anyway it will require a lot of work on rust side.
I decided to focus on gcc version and wait for bindgen and rustc improvements.
For now, I see only 2 options for you:
I really like the new c++ version, it's so much powerful and controllable, so I am into the second option :)
yeah, I really like the new version too. I have a few pull requests in the pipe. You can check them here. Only can't test them right now :) Ok, trying to switch to gnu toolchain
yeah, works fine with x86_64-pc-windows-gnu! closing this issue
The project compiles fine, but when trying to run tests or the sphere example, I've got those messages :
Might this be an issue with the version of Visual Studio I'm using ? I'm using nightly-x86_64-pc-windows-msvc rust toolchain.