Alright, I tried that and it does echo out a pointer address (e.g. 0xFFff08b7e).

Where this is getting kind of weird for me is that I have this raytracer that 
I'm working on that uses stb_image.h as well and it able to load an image on OS 
X without throwing a seg fault. The code for the mini-wrapper is here: 
[https://gitlab.com/define-private-public/PeterShirley-RayTracing-Nim/blob/7130281eee79c76be8e0c6ecb6dc36c99ab5aa52/book2/stb_image.nim](https://gitlab.com/define-private-public/PeterShirley-RayTracing-Nim/blob/7130281eee79c76be8e0c6ecb6dc36c99ab5aa52/book2/stb_image.nim)

The only major difference is that the wrapper in the ray tracer doesn't have 
the header file embedded directly in a .nim file, though that shouldn't matter.

I am really perplexed by this.

Reply via email to