Nico Buescher
01/29/2019, 3:12 PMextern function)? 2. Is it possible to have a fun main(), ie an entry point, in a shared library like you can in C++?Dominaezzz
01/29/2019, 3:23 PMDominaezzz
01/29/2019, 3:23 PMDominaezzz
01/29/2019, 3:25 PMDominaezzz
01/29/2019, 3:27 PMNico Buescher
01/29/2019, 4:00 PMNico Buescher
01/29/2019, 4:02 PMexternal keyword. nothing like that for Kotlin/Native?Dominaezzz
01/29/2019, 4:08 PMDominaezzz
01/29/2019, 4:10 PMNico Buescher
01/29/2019, 5:57 PM@SymbolName("function") external fun kotlinFunction()) which seems to have the same effect as extern void function() in C, but now I'm not sure how to implement and link the right function in the application projectNico Buescher
01/29/2019, 5:59 PMDominaezzz
01/29/2019, 6:04 PM@CName(externName = "function", shortName = "lolol") fun someFun() {}Dominaezzz
01/29/2019, 6:07 PMNico Buescher
01/29/2019, 6:08 PMDominaezzz
01/29/2019, 6:09 PMDominaezzz
01/29/2019, 6:10 PM@CName("function") fun function() {} should work.Dominaezzz
01/29/2019, 6:12 PMDico
01/29/2019, 6:50 PMextern symbols must be defined elsewhere in the same compilation in order for them to be resolved. In that, it's a bit like expect in kotlin if you consider the pre processor.Nico Buescher
01/29/2019, 7:08 PMsvyatoslav.scherbina
01/30/2019, 8:10 AM@CName annotation is unrelated.
What do you mean by “shared library”? Is it .klib or `.so`/`.dylib`/`.dll`?