Advertisement

Can`t compile NeHe`s Lesson 6 with Dev-C++

Started by January 03, 2002 09:03 AM
4 comments, last by Fab102 23 years, 1 month ago
Hello I can`t compile the sourcecode from NeHe Tutorial (Lesson 6) with my Dev-C++ Compiler (Ver. 4) There is one error message. implicit declaration of function free `int free(...)` at line 78 free (TextureImage[0]->data); What is wrong in this function. I didn`t change the code, I only define the CDS_FULLSCREEN to 4 at the begining. But the rest is orginal NeHe code. (The Lib I included are : -lglu32 -lopengl32 -lgdi32 Can somebody help me ?? Thanx
OpenGl rules .. please visit my homepage http://www.coding.ch.vu
Hello once again

I found the reason for this problem. I have to include the stdlib.h for the free function with dev-c++. This problem is solved. But the code doesn`t work, the compiler and linker output is = undefined reference to `auxDIBImageLoadA@4''
What is wrong with that ?????

OpenGl rules .. please visit my homepage http://www.coding.ch.vu
Advertisement
You haven''t linked the opengl libraries

"THE INFORMATION CONTAINED IN THIS REPORT IS CLASSIFIED; DO NOT GO TO FOX NEWS TO READ OR OBTAIN A COPY." , the pentagon
You need to link the ''glaux'' library.

O.k .. O.k .. I forgot the glaux Lib''s that`s true.
I downloaded the glaux.lib and put it in the windows system directory. Now , I can compile the sourcecode without an error message. If I start the exe file, there is the Fullscreen question box, few seconds after, the 3dfx logo is on my screen, so far so good. But then I get a box with Initalization failed.
Jeeessssusss.... is OpenGL texture programming sooo complicated with dev-c++ ?? (what is the solution ? )
Thanx folks for this lesson
OpenGl rules .. please visit my homepage http://www.coding.ch.vu
solution? try not to use glaux with dev-c++.
try skipping down a few tuts to learn how to use TGA''s or find a way to load bitmaps yourself.

This topic is closed to new replies.

Advertisement