I am getting a weird error with trying to use cint...
# kotlin-native
m
I am getting a weird error with trying to use cinterop in kotlin native. I am using a C++ static library with a C header file, with extern "C" if compiled with C++, that uses another of my cinterop libraries inside it. Full error in the thread
Copy code
lld-link: warning: ignoring unknown argument: -exclude-symbols:main_test
lld-link: error: -exclude-symbols:main_test is not allowed in .drectve
Copy code
e: C:\Users\Syer\.konan\dependencies\llvm-11.1.0-windows-x64-essentials/bin/clang++ invocation reported errors

The C:\Users\Syer\.konan\dependencies\llvm-11.1.0-windows-x64-essentials/bin/clang++ command returned non-zero exit code: 1.
output:
lld-link: warning: ignoring unknown argument: -exclude-symbols:main_test
lld-link: error: -exclude-symbols:main_test is not allowed in .drectve
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':cinterop-test:linkDebugExecutableMingwX64'.
> Compilation finished with errors