Re: How Can i compile nim code as a lib.so and use it in C code ?

2019-12-25 Thread rgv151
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 ?

2019-12-25 Thread KyrillosWalid
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 ?