I wrote simple code of Nim `nim.nim` below.
proc nimSample*(n: cint) {. exportc .} =
echo n
Run
also by Python3
import ctypes
nim = ctypes.CDLL('nim')
arg = ctypes.c_int(1)
nim.nimSample(arg)
Run
But there are not available. Error message below.
Segmentation fault: 11
Run
Please let me know why this code is not available.
Thanks.
