krtko
07/28/2017, 11:56 PMroamingthings
07/29/2017, 5:18 AMfabianterhorst
07/29/2017, 9:17 AMdraciel
07/29/2017, 12:27 PMjkbbwr
07/30/2017, 12:08 PMkyonifer
08/03/2017, 5:31 PM-nomain
flag? I've been trying to get something like konanc -nomain foo.kt -linkerOpts main.o -e main
to work (where main.c is a C hello world) but i'm getting stuck on function Konan_start: error: undefined reference to 'EntryPointSelector'
, wondering if theres an obvious flag im missingkyonifer
08/03/2017, 5:32 PMllc -relocation-model=pic
on the emitted bc but eventually get stuck at the deps being compiled without fPICelizarov
08/07/2017, 5:08 AMnapperley
08/08/2017, 8:04 AMkrotki
08/08/2017, 11:53 AMandreasmattsson
08/08/2017, 12:29 PM@JvmStatic
and @Throws
annotations thrown in there. These are however giving me error: Unresolved reference
in the compileConan task.
Anyone got suggestions for how to deal with this with a common codebase? I thought maybe I'd create typealiases to dummy annotations for these in the Kotlin/Native library. But then I don't know how to deal with the annotation argument for Throws... (KClass also doesn't exist for Native).
edit: (using the Konan Gradle Plugin)drako
08/08/2017, 2:21 PMlukas.mega
08/09/2017, 2:52 PMjlleitschuh
08/09/2017, 3:26 PMnapperley
08/11/2017, 1:01 AMraulraja
08/11/2017, 8:10 PMkenkyee
08/11/2017, 11:19 PMkenkyee
08/11/2017, 11:20 PMmsink
08/11/2017, 11:28 PMmsink
08/11/2017, 11:40 PMmaku
08/12/2017, 6:15 PMandreasmattsson
08/14/2017, 2:15 PMreaddir
from dirent.h
.
I have the following code:
while (true) {
val ep = readdir (dp)
if (ep == null) break
val str = ep.pointed.d_name.toKString()
println(str)
}
This works for some dirs but not all. On some, I get the following partway through the enumeration:
terminate called after throwing an instance of 'utf8::invalid_utf8'
what(): Invalid UTF-8
The execution terminates immediately. How do I catch/recover from this error? I've tried wrapping with try/catch Throwable to no avail.groostav
08/15/2017, 8:28 AMdarkmoon_uk
08/18/2017, 10:32 AMdarkmoon_uk
08/18/2017, 10:36 AMsksk
08/19/2017, 11:57 AMjimn
08/21/2017, 3:34 AMjkbbwr
08/23/2017, 4:18 PMelect
08/24/2017, 8:29 PMgildor
08/25/2017, 6:43 AMgildor
08/25/2017, 6:43 AMsksk
08/25/2017, 11:58 AMnapperley
08/26/2017, 2:00 AMsksk
08/26/2017, 5:33 PMgildor
08/27/2017, 4:43 AMspierce7
09/07/2017, 4:06 PM