Help - Learning C on Mac with Codelite *Missing Malloc.h

CodeLite installation/troubleshooting forum
carlosamigos1975
CodeLite Curious
Posts: 2
Joined: Wed Dec 06, 2017 4:38 pm
Genuine User: Yes
IDE Question: C++
Contact:

Help - Learning C on Mac with Codelite *Missing Malloc.h

Post by carlosamigos1975 »

Can anyone help with this?

I'm doing a series of video tutorials and when I encounter malloc.h the programs fail because this file is missing...is this a Mac issue and if so, how could i fix it?

I already have xcode installed.
carlosamigos1975
CodeLite Curious
Posts: 2
Joined: Wed Dec 06, 2017 4:38 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Help - Learning C on Mac with Codelite *Missing Malloc.h

Post by carlosamigos1975 »

I managed to resolve this after finding the answer on a mac forum.....

Once Xcode is installed instead of trying to load malloc.h directly use #include <stdlib.h>

Problem solved :roll:
Post Reply