rjhdby
07/02/2018, 11:10 AMkotlinc -opt ./hellokt.kt -o hellokt -produce dynamic
kotlinc -opt ./hellokt.kt -o hellokt -produce static
With shared library all working, but with static library I receive segfault.
Why it can be? Mabe I need to provide some specific keys to c compiler?kartikpatodi
07/02/2018, 3:25 PMspierce7
07/02/2018, 7:51 PMrjhdby
07/03/2018, 12:10 PMsomeHeader.h
struct my_strucs{
uint32_t id;
char * name;
}
What can I do for using it in Kotlin code?sksk
07/03/2018, 7:23 PMhttps://user-images.githubusercontent.com/570848/42139787-338b9446-7d95-11e8-81b2-2e72b7a3166a.png▾
rjhdby
07/04/2018, 12:51 PMprivate fun getFile(name: String) {
val file = fopen(name, "wt")
if (file == null) throw Error("Cannot write file '$name'")
return file
private fun writeM4() {
val file = getFile("config.m4")
fputs(m4Content, file)
...
}
Compiler is fail with errors
dsl.kt:77:30: error: type mismatch: inferred type is Unit but CValuesRef<FILE /* = _IO_FILE */>? was expected
fputs(m4Content, file)
^
dsl.kt:86:16: error: type mismatch: inferred type is CPointer<FILE /* = _IO_FILE */>? but Unit was expected
return file
Why it does not infer automatically?Dominaezzz
07/05/2018, 6:51 AMDominaezzz
07/05/2018, 8:14 AMDenis Shurygin
07/05/2018, 12:30 PMtylerwilson
07/05/2018, 4:16 PMtylerwilson
07/05/2018, 4:28 PMkpgalligan
07/05/2018, 6:35 PMthevery
07/05/2018, 8:25 PMinternal
handling, should it work like on JVM now? It is ok in JVM test, but doesn't work in KN - probably problem in indirect usage?Nikky
07/06/2018, 4:44 AMKonstantin Petrukhnov
07/06/2018, 7:10 AMrjhdby
07/06/2018, 9:36 AMDominaezzz
07/06/2018, 11:26 AMthevery
07/06/2018, 1:26 PMnwh
07/06/2018, 9:17 PMDWORD
- how can I construct this?Aregev2
07/07/2018, 8:28 PMsksk
07/08/2018, 3:50 PMsksk
07/08/2018, 6:44 PMlouiscad
07/08/2018, 6:53 PMKrizzu
07/08/2018, 8:04 PMbadlogic
07/09/2018, 11:37 AMrjhdby
07/09/2018, 1:13 PMAnaR
07/09/2018, 4:27 PMthevery
07/09/2018, 5:03 PM• Common stdlib with Kotlin/JVM and Kotlin/JSWhat does it mean for multiplatofrm projects? kotlin-stdlib-jdk7 is still required but all
kotlin.*
classes are available in kotlin-stdlib-common
now?napperley
07/09/2018, 9:38 PMspierce7
07/09/2018, 10:24 PMspierce7
07/09/2018, 10:24 PMgildor
07/09/2018, 11:07 PM