PDA

View Full Version : confused



04-21-2004, 01:28 PM
im using dev c++ and i follows nehe's tutorial word by word, and im on tutorial number 6, the one where you texture, and its giving me the problem of
74 main.cpp
implicit declaration of function `int free(...)'

chowe6685
04-21-2004, 02:11 PM
what is line 74 in your code?
the surrounding lines would be nice too

04-21-2004, 04:04 PM
if (TextureImage[0]) // If Texture Exists
{
if (TextureImage[0]->data) // If Texture Image Exists
{
/////////////////////////////////////////////////////////// ////////////////////////////////
free(TextureImage[0]->data); // Free The Texture Image Memory
}

line 74 right here>>>>free(TextureImage[0]); // Free The Image Structure
}

return Status; // Return The Status
}

ZbuffeR
04-22-2004, 02:19 AM
If your are working with C, put :
#include <stdlib.h>

at the top of your C file.

I am not sure about C++, it may work too.

dvm
04-22-2004, 05:02 AM
Could be a misplaced bracket {} somewhere. You opened one and forgot to close it. I think I got a similar mistake yesterday and was confused until I noticed I had commented out an opening bracket { while the closing one was still there.

BeginOpenGL
04-22-2004, 07:31 AM
Spartan 086

Just an idea but, close the if conditanal brackets with a semi colon > ;.

Might work.

BeginOpenGL