This is not valid code. Any idea how to fix this other than to manually delete it?
m
Markus Böck
05/26/2020, 4:21 PM
It's valid code for GCC and clang as an extension but not MSVC. I believe MSVC is currently not supported as a target
p
Patrick
05/26/2020, 4:46 PM
Oh I see. Is there a way to make it work? Can I just delete the line?
m
Markus Böck
05/26/2020, 4:58 PM
Only way is to use MinGW instead of MSVC
p
Patrick
05/26/2020, 4:59 PM
Ok interesting. Why does the documentation also use the MSVC compiler then?
m
Markus Böck
05/26/2020, 5:01 PM
Good question. I have no clue. I have found this issue where there are official responses https://github.com/JetBrains/kotlin-native/issues/3953. If they wanted it to be crossplatform or cross compiler they should probably simply not use those types and features at DLL boundaries
p
Patrick
05/26/2020, 5:13 PM
Thanks this helped me a lot, I subscribed to the issue