Jump to content
  • Advertisement
Sign in to follow this  
SirOnion

OpenGL 'free' is undeclared

This topic is 4808 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

I used to use GLUT, but now I switched to making OpenGL with a WIN32 apps, The way I used to load image files with glut doesn't work anymore (malloc underclared), so I just went to NeHe's tutorial for texture mapping where loading BMPs are explained, there are no errors except that it says 'free' function is undeclared. I never had this problem before when I used GLUT, does anybody know what could be wrong?

Share this post


Link to post
Share on other sites
Advertisement
Its possible that something in GLUT was including the standard header files for you. Since you're no longer using GLUT you'll need to include the header files yourself. Likely header files you need to add are:

<stdlib.h> and <malloc.h>

Cheers!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!