Hello, just started to learn kotlin(and i am new to java so…) and I have a question.
I wrote some function, for example :
fun discriminant(a: Double, b: Double, c: Double) = sqr(b) - 4 * a * c
and I need to use it in another file, which is in another folder. Compiled the code with this function with
kotlinc Simple.kt -include-runtime -d hello.jar
so in another file i wrote
and have error like this
IfElse.kt:4:8: error: unresolved reference: lesson
IfElse.kt:20:13: error: unresolved reference: discriminant
val d = discriminant(a, b, c) // 2
Think i need to change smt with link options , i tried to add
What should i do to correctly link this function to my new file?