When exporting my project as a dynamic library I h...
# kotlin-native
p
When exporting my project as a dynamic library I have this line in my header file:
Copy code
typedef float __attribute__ ((__vector_size__ (16))) nimmstaWindows_KVector128;
This is not valid code. Any idea how to fix this other than to manually delete it?
m
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
Oh I see. Is there a way to make it work? Can I just delete the line?
m
Only way is to use MinGW instead of MSVC
p
Ok interesting. Why does the documentation also use the MSVC compiler then?
m
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
Thanks this helped me a lot, I subscribed to the issue