once I compile my app to exe file on Windows, I st...
# kotlin-native
l
once I compile my app to exe file on Windows, I start it and it ends without any message. This means there are no related DLLs. If I copy DLLs the to same dir, it works. Can I somehow handle this error and say that DLLs are missing?
d
You'll have to look into dynamic loading but I'm not sure if it's worth the effort.
l
its fine on linux, say that .so is missing, but not on Windows
d
Sorry, I think I misunderstood the real question.
Is this a debug or release build?
Have you tried running the exe outside of the IDE?
l
yes, it is outside of IDE
both debug and release does the same
d
Try running with cmd.
What's the exit code?
l
Copy code
echo %errorlevel%
-1073741515
It popups the missing dll error when doubleclicking from explorer or running from cmd. It only does not show it from power shell. So its probably powershells feature. So its ok as it is. Thanks