'kotlin command-line compiler when a kt file import function

I need to compile a kotlin file, but the file import a custom extension function "setDisplay()", when I use "kotlinc -cp xxx -d output MainActivity.kt", it remind unresolved reference setDisplay, how do I do?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source