jacksondunstan / UnityNativeScripting

Unity Scripting in C++
https://jacksondunstan.com/articles/3938
MIT License
1.33k stars 135 forks source link

Unable to compile for IComparable #49

Closed sekkit closed 4 years ago

sekkit commented 4 years ago

struct IComparable; template struct IComparable_1;

IComparable it says C2989 'System::IComparable': class template has already been declared as a non-class template NativeScript C:\Projects\Research\unitycpp_190809\Unity\Libs\CppSource\NativeScript\Bindings.h

jacksondunstan commented 4 years ago

IComparable and many generics of IComparable<T> are exported in the example included in the repo and compile just fine. What changes did you make to cause it to not compile? Can you post your NativeScriptTypes.json, Bindings.h, and Bindings.cpp as well as any changes you've made to the repo?

jacksondunstan commented 4 years ago

Closing due to inactivity.