#ifdef __linux__ # define _GNU_SOURCE #endif #include #include #include extern int run_test(); void * resolve_symbol(char *name) { /* here we can add here some magic to resolve symbols in kotlin native*/ void* symbol = dlsym(RTLD_DEFAULT, name); if (!symbol) { printf("Could not find kotlin symbol '%s': %s\n", name, dlerror()); exit(1); } return symbol; } int main() { exit(run_test()); }