Re: How Can i compile nim code as a lib.so and use it in C code ?
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)
How Can i compile nim code as a lib.so and use it in C code ?
Hi! iam traying compile this code as a lib.so to use it in C code **lib.nim** `proc fib(): cstring {.exportc.} = return "Hi From Nim"` how can i do it ?