To use C code in Nim I compile the C files with -c option (on GCC), then I use 
{.link: "your_binary.o".} pragma in Nim files and simple {.importc.} for each 
function or type. Maybe there is uses cases where importing headers is 
necessary but I haven't encontered this case for the moment. (maybe it is 
headers only libraries ?)

Reply via email to