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

fatal error: 'malloc.h' file not found #2

Open
rajshah4 opened this issue Aug 21, 2015 · 6 comments
Open

fatal error: 'malloc.h' file not found #2

rajshah4 opened this issue Aug 21, 2015 · 6 comments

Comments

@rajshah4
Copy link

Nice little tool, I received the error: fatal error: 'malloc.h' file not found when i first tried to make the file on my Mac (10.10). I changed the line from #include <malloc.h> to #include <malloc/malloc.h>
Figured this might help someone

@marekrei
Copy link
Owner

Not quite sure what the change was.

@rajshah4
Copy link
Author

oops, looks like I didn't properly escape the characters:
line4 was:
#include <malloc.h>
changed line 4 to:
#include <malloc/malloc.h>

I thought this might be Mac OS specific so i didn't do a pull request

@marekrei
Copy link
Owner

Excellent, many thanks!

@tfmorris
Copy link

tfmorris commented Oct 5, 2015

Since you're already including stdlib.h, I think you can just remove the malloc.h include without any problem.

http://stackoverflow.com/questions/12973311/difference-between-stdlib-h-and-malloc-h

tfmorris pushed a commit to tfmorris/convertvec that referenced this issue Oct 5, 2015
@keshavagrwal109
Copy link

how do you make the file malloc.h before make the said changes?

@nicolaimonzonladas
Copy link

THANK YOU

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

5 participants