".h" files are not found for (nim) dependencies

2019-04-05 Thread cdunn2001
[https://github.com/nim-lang/Nim/issues/10971](https://github.com/nim-lang/Nim/issues/10971)

The problem is hard to describe and even harder to search for. Any ideas?

The way I got around this in the past was to symlink my dependencies into 
project's directory. That way, to Nim, they are all part of the same package. 
But I'm trying to standardize -- to go the Nim Way. This is a big problem.

Obviously, if I install my C sub-dependencies, then everything is fine. I know 
where the .h and .so files are. But I am taking advantage of Nim's {.compile 
"foo.c".} pragma.


Re: ".h" files are not found for (nim) dependencies

2019-04-05 Thread cdunn2001
If found some discussion and ideas:

  * 
[https://forum.nim-lang.org/t/3798#23682](https://forum.nim-lang.org/t/3798#23682)
  * 
[https://github.com/status-im/nim-ttmath/blob/master/src/ttmath.nim#L5](https://github.com/status-im/nim-ttmath/blob/master/src/ttmath.nim#L5)




const ttmathPath = currentSourcePath.rsplit(DirSep, 1)[0]
{.passC: "-I" & ttmathPath.}


Run

Is that really our best solution? I think that should be add automatically by 
`nim c`