New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unknown type found [long] #216
Comments
Looks like some missing bindings? Adding this to the mapping file fixes it: <bindings>
<bind from="long" to="System.Int32" />
<bind from="unsigned long" to="System.UInt32" />
</bindings> (Onto new errors...) |
Long in C maps to either Int32 or IntPtr depending if the sourcs are compiled on Windows or non-Windows. I believe we have a NativeLong and NativeULong type in 2.0 that we map to instead to ensure correct behavior on all platforms. |
@jkoritzinsky yeah, |
I am getting the same issue, I used NuGet and added both SharpGen.SDK and SharpGen.Runtime. If I add <bindings>
<bind from="long" to="System.Int32" />
<bind from="HWND__" to="System.IntPtr" />
</bindings> It works and generates the code. But without it it fails. |
Noob here.
I get this error:
CppStruct [PFactoryInfo]/long flags error : Unknown type found [long]
and have tried several things to fix it but to no avail... I suspect the
FactoryFlags
are the problem (see source code below).(I have trouble deciphering the docs on where these xml tags go precisely. Sometimes it is mentioned but not always. No errors when you do it wrong too.)
Can anybody shed some light on this?
The mapping file:
Source code:
The text was updated successfully, but these errors were encountered: