Resurrecting this thread as I stumbled upon the exact same issue. The library from def_pri_pub (stb_image) and the library I'm wrapping (ttmath) are header-only so we can't link to a library.
I've noticed that `{.importc: "someProc", header: "path/to/header".}` is either
absolute or relative to the nimcache directory.
I think `header:` should either:
* copy the header to nimcache if a dynlib pragma is not passed too to ease
header-only library wrapping.
* or be relative to the source file
