If i build target C lib for cinterops on windows w...
# kotlin-native
b
If i build target C lib for cinterops on windows with Visual Studio CMAKE, is it expected to work? Or must i build target C libs on MSYS2/CYGWIN to make them "consumable" by K/N? Currently I'm getting this error when compiling kotlin executable on windows, while it works fine on OSX and Ubuntu
Copy code
Type mismatch: inferred type is bool /* = Byte */ but Boolean was expected
m
Looks like a mapping problem...iff I remember correctly MS was a bit special while dealing with bool. I think they mapped as int (1-4 Bytes, however the size is not specific). Probably you need to take this into account. Maybe it is easier to deal directly with
int
instead and map it in Kotlin correctly.