#### Archived

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

# Cant compile NeHes Lesson 6 with Dev-C++

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

## Recommended Posts

Hello I cant 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 didnt 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

##### Share on other sites
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 doesnt work, the compiler and linker output is = undefined reference to auxDIBImageLoadA@4''
What is wrong with that ?????

##### Share on other sites
You haven''t linked the opengl libraries

##### Share on other sites
You need to link the ''glaux'' library.

##### Share on other sites
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