I’m a little further in my tinkering/understanding...
# kotlin-native
c
I’m a little further in my tinkering/understanding. I’m now trying to create a small Kotlin example using libcurl but I’m getting a runtime error:
Copy code
SFO1212474815A:easycurl 212474815$ kotlinc curl.kt -library curlklib -o kurl
KtFile: curl.kt
ld: warning: directory not found for option '-L/opt/local/lib'
ld: warning: could not create compact unwind for _ffi_call_unix64: does not use RBP or RSP based frame
SFO1212474815A:easycurl 212474815$ ./kurl.kexe
Download from URL
Error performing CURL download: CPointer(raw=0x10e711808)
I figured it out!!! The sample code I copied from has a small bug.
I was behind an http proxy! My next question would be how would I configure proxy settings in such an app?
I suppose I would have to configure the proxy manually through curl?