Skip to content

No example provided for MS Windows; build.gradle.kts does not work nor match the sample code in this git repository #1

Open
@v79

Description

@v79

I've been attempting to work through the example from https://play.kotlinlang.org/hands-on/Introduction%20to%20Kotlin%20Native/01_Introduction but it's impossible to compile from a Windows machine.

The build.gradle.kts files listed on the web page do not work. For instance, this is not valid code:

 compilations.main { 
            cinterops {    
                libcurl   
            }             
        }

I had to replace it with:

compilations { "main" {
            cinterops {
                val libCurl by cinterops.creating {
                    defFile(project.file("src/nativeInterop/cinterop/libcurl.def"))
                }
            }
        }}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions