[haiku-3rdparty-dev] Re: gcc reports: 'free' was not declared in this scope

  • From: Joseph Adams <joeyadams3.14159@xxxxxxxxx>
  • To: haiku-3rdparty-dev@xxxxxxxxxxxxx
  • Date: Wed, 9 Mar 2011 21:57:08 -0500

2011/3/9 Rafael Fernández López <ereslibre@xxxxxxx>:
> I was compiling a project of mine in Haiku, and got:
>
> error: 'free' was not declared in this scope

Freedom is not free.  You have to #include <stdlib.h>

Could you paste the line this error occurred on?  If you didn't say
"free" explicitly in your code, one of the header files in Haiku may
be missing an include.

Other related posts: