Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

spaceleader

frustration and confusion.........

This topic is 6266 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Well, i a newbie and i DID went through the Nehe tutorial up TILL the part with the texture comes in......everytime i compile a code with anything that says free (something something) i get a compile error that is an impliceted declaration or something....i tried download different version of the source for like MSVC++ and BORLAND and GLUT and they all comes out to the same compiler error, btw im using Dev C++ 4. 2 poor for MSVC++............can someone please!!!!!!! help me out here. i''m stuck at tut # 7! or is it 6? AHHH I DONT KNOW!!

Share this post


Link to post
Share on other sites
Advertisement
Worst case scenario: An alternate form of the free(whatever) command is...

delete whatever;

or... (if your whatever is an array)

delete [] whatever;

~ Dragonus

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
If you use malloc() to allocate the memory DO NOT use delete to free the memory. If you allocate with malloc() free with free(), if you allocate with new, then free with delete. First make sure that you''re including the correct header file, then

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!