Archived

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

Fab102

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

Recommended Posts

Fab102    122
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

Share this post


Link to post
Share on other sites
Fab102    122
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 ?????

Share this post


Link to post
Share on other sites
Fab102    122
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

Share this post


Link to post
Share on other sites