you need to add dynlib prama too, and compile with \--app:lib option. more 
details 
[here](https://nim-lang.org/docs/manual.html#foreign-function-interface-dynlib-pragma-for-export)

Reply via email to