just two annoying things: no auto completition on ...
# kotlin-native
e
just two annoying things: no auto completition on Idea and no hightlighting on Clion, https://github.com/elect86/glfw Am I doing anything wrong?
o
Note that for proper IDE functioning you need to use MPP Gradle DSL, like described in https://kotlinlang.org/docs/tutorials/native/mpp-ios-android.html
e
ok, I added
id 'org.jetbrains.kotlin.multiplatform' version '1.3.11'
I also had to disable
latform.native
to avoid clash on task
src..
however now I get
Could not find method main() for arguments [build_ado1131xatpfuu8x53mdl77v6$_run_closure2@7d830fb] on SoftwareComponentInternal set of type org.gradle.api.internal.component.DefaultSoftwareComponentContainer.
also @olonho what's the point in having
glfw.def
if we can set everything using gradle?
o
.def file has more functionality than just a basic functions provided by Gradle DSL, for example ability to write arbitrary C code after
---
. Please check out https://github.com/JetBrains/kotlin-native/blob/master/INTEROP.md
👍 1