Skip to main content
gamedev.net
🔒 Locked

New texturing problem( free() function? )

Started by BubbleMan Dec 20, 2001 at 2:19 PM 2 replies 200+ views
Original Post
BubbleMan
BubbleMan
In NeHe''s texture tutorial, it has a "free()" function. When I compile my code with it, it says "implicit declaration of int free(...)". What is wrong?
Martee
Martee
Did you include stdlib.h?
ReactOS - an Open-source operating system compatible with Windows NT apps and drivers
BubbleMan
BubbleMan
Oohhhh! Ok! Now it is working but I have another problem. I copy the exact code, but no texture shows up on my cube. What''s wrong? It''s the same as NeHe''s because I''m just learning. I just changed the texture filename.
siaspete
siaspete
This is the sort of thing I don''t like about online tutorials for newbies.

The best way to learn is to figure things out for yourself, not by copy and pasting the code out of some tutorial and not having a clue how it really works.

I see so many questions about here where guys are asking about problems where they either haven''t looked to see how the code works, or are trying something advanced when they don''t understand the basics of straight C coding.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.