This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Error
Hi Rahul,
g++ is basically telling you, that the function Free is
not declared in your code or any included header files.
The int Free(...) bit, i think, comes from standard C,
where one did not have to prototype functions, but one
could rely on some implicit prototypes. ANSI C made
prototypes a requirement.
Yours sincerely,
Bjorn
Rahul it wrote:
>
> I am running a Cpp program and when I compile it with g++ it gives
> me some error
> like this
>
> In function `int main(...)':
> program.cpp: implicit declaration of function `int Free(...)
>
> I donot know why is this?
> The only way Free() appears in my program is
> Free (str);
> where str type is
> char * str;
>
> Thanks
>
> _________________________________________________________
> Click below to visit monsterindia.com and review jobs in India or
> Abroad
> http://monsterindia.rediff.com/jobs