Figured it out.
# kotlin-native
n
Figured it out.
r
Stdlib is included automatically on native. You shouldn't need to do anything.
n
I had to make the change outlined for Idea to start importing things from stdlib.
r
Might be an Idea bug, or something else weird about your setup. What's the rest of your build.gradle look like?
n
It makes sense that stdlib isn't included by default. No need to bloat your code if you don't need it. On the JVM it isn't included by default either.
Copy code
buildscript {
  repositories {
    maven(url = "<http://dl.bintray.com/kotlin/kotlin-eap>")
  }
}
plugins {
  kotlin("multiplatform") version "1.3.70-eap-42"
}
repositories {
  mavenCentral()
  maven(url = "<http://dl.bintray.com/kotlin/kotlin-eap>")
}
kotlin {
  // For ARM, should be changed to iosArm32 or iosArm64
  // For Linux, should be changed to e.g. linuxX64
  // For MacOS, should be changed to e.g. macosX64
  // For Windows, should be changed to e.g. mingwX64
  mingwX64("mingw") {
    binaries {
      executable {
        // Change to specify fully qualified name of your application's entry point:
        entryPoint = "poker.main"
        // Specify command-line arguments, if necessary:
        runTask?.args("")
      }
    }
  }
  sourceSets {
    // Note: To enable common source sets please comment out 'kotlin.import.noCommonSourceSets' property
    // in gradle.properties file and re-import your project in IDE.
    mingwX64("mingw").compilations["main"].defaultSourceSet { /* ... */ }
    mingwX64("mingw").compilations["main"].cinterops {
      create("cl") {
        defFile = project.rootDir.resolve("src").resolve("cl").resolve("cl.def")
        compilerOpts.add("-ID:/Dev/lightOCLSDK/include")
        compilerOpts.add("-msse4.2")
      }

    }
    mingwX64("mingw").compilations["test"].defaultSourceSet {
      dependencies {
        implementation(kotlin("stdlib"))
      }
    }
  }

}

// Use the following Gradle tasks to run your application:
// :runReleaseExecutableMingw - without debug symbols
// :runDebugExecutableMingw - with debug symbols