-nomain not working?


I am trying to compile a small library package with kotlinc-native, and I would like to do it without Gradle and without any IDE.

Even when I pass -nomain as argument, I get the error:
error: could not find ‘main’ in ‘’ package.

Am I doing it wrong?


Have you tried the -p library option?