https://kotlinlang.org logo
Title
j

jkbbwr

12/15/2017, 7:42 PM
Trying to cinterop but get this error
Exception in thread "main" java.lang.IllegalArgumentException: 'va_listVar' is going to be declared twice
	at org.jetbrains.kotlin.native.interop.gen.KotlinFile.<init>(KotlinCodeModel.kt:231)
	at org.jetbrains.kotlin.native.interop.gen.jvm.StubGenerator$kotlinFile$1.<init>(StubGenerator.kt:167)
	at org.jetbrains.kotlin.native.interop.gen.jvm.StubGenerator.<init>(StubGenerator.kt:167)
	at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.processLib(main.kt:370)
	at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.interop(main.kt:33)
	at org.jetbrains.kotlin.cli.utilities.MainKt.invokeCinterop(main.kt:94)
	at org.jetbrains.kotlin.cli.utilities.MainKt.main(main.kt:117)
o

olonho

12/16/2017, 11:18 AM
we need more context, like complete code and environment. Shortly speaking, you have hit a cinterop tool problem related to parsing system and K/N supplied compiler headers. Please give us platform and .def file.