Has anyone seen this error before? It happens on W...
# kotlin-native
p
Has anyone seen this error before? It happens on Windows if you try to compile a function with the CoGetClassObject function in it.
Copy code
C:\Users\patri\AppData\Local\Temp\konan_temp5624724293383525973\result.o:out:(.text+0x3b70f3): undefined reference to `__imp_CoGetClassObject'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
e: C:\Users\patri\.konan\dependencies\msys2-mingw-w64-x86_64-clang-llvm-lld-compiler_rt-8.0.1/bin/clang++ invocation reported errors
a
Hello! Try adding the
-lole32
linker flag.
🎉 1
p
This works, thanks
👍 1