-nomain not working?

Hello,

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?

Hello!

Have you tried the -p library option?