Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when compiling example in README #109

Closed
tonyfleck76 opened this issue Jun 13, 2016 · 5 comments
Closed

Error when compiling example in README #109

tonyfleck76 opened this issue Jun 13, 2016 · 5 comments

Comments

@tonyfleck76
Copy link

When compiling the example, I get an error on ttf_ttf.c, saying that it cannot find memory.h.

ttf_ttf.c:701:23: fatal error: memory.h: No such file or directory.
#include <memory.h>

Is there any solution to this? Or a memory.h file that I need to just copy and paste into the nimcache directory?

@yglukhov
Copy link
Owner

Thats strange. What os/toolchain are you using?

@tonyfleck76
Copy link
Author

tonyfleck76 commented Jun 13, 2016

Windows 10 and minGW. Also thanks for the rapid reply!

@yglukhov
Copy link
Owner

I would bet something is wrong with your mingw installation, because memory.h should come along with it. As a workaround, just comment out the line #include <memory.h> in your NIMBLE_PACKAGES/ttf/ttf.nim. I think it should work that way.

@tonyfleck76
Copy link
Author

Alright, that does appear to have fixed the issue, thanks! I may have to look into that minGW installation though and make sure that nothing is missing there.

@yglukhov
Copy link
Owner

Anytime. Closing this for now. If you find that it's normal for mingw to not have memory.h, feel free to file a pull request to ttf ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants