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 ?)
- Few mixed up questions ErikCampobadal
- Re: Few mixed up questions mashingan
- Re: Few mixed up questions mratsim
- Re: Few mixed up questions DTxplorer
- Re: Few mixed up questions Hlaaftana
- Re: Few mixed up questions ErikCampobadal
