Advertisement

Dev-C++ and Tut 6

Started by September 18, 2001 10:58 AM
4 comments, last by Zero_Infinity 23 years, 5 months ago
Does anyone mind translating for Me. When trying to compile the code in Tut 6, the compiler reads an error: implicit declaration of function `int free(...)'' if (TextureImage[0]) { if (TextureImage[0]->data) { free(TextureImage[0]->data); } free(TextureImage[0]); } Can anyone explain why the compilerer doesn''t understand the keyword "free"?
The function free isn''t a keyword. Its prototype is in stdlib.h, incase it isn''t included automatically.

[Resist Windows XP''s Invasive Production Activation Technology!]
Advertisement
Thanx, N&V, however, once I compiled the code an error message says that i need the library (DLL) for glaux. I''ve searched 4 it, unfortunately, there is no result. Do U know where I can get a copy?
Glaux is evil . AFAIK there''s no version for DevC++. Skip to NeHe''s TGA loading tutorial, it''ll get the job done .

[Resist Windows XP''s Invasive Production Activation Technology!]
ThanX, again. The code from Lesson25(TGA) compiles & Links fine, BUT, when I execute it, the message box appears "Initialization failed". Do U know what it could B?
Actually, the problem is solved. The TGA/BMP file must B in the same folder as the Project, or else...Initialization Failure Message will appear. Thanx for the Lesson.

This topic is closed to new replies.

Advertisement