Original Post
When trying to compile an OpenGL program, I always get the following error:
[Linker error] undefined reference to `glOrtho@24'
I'm linking with -lopengl32. Does anyone know why this is happening? It's weird because I don't get any other errors with it, so it's not like I'm missing a library or anything. Do you think my opengl32.lib could be corrupted or something? [edit] I looked around and found out that opengl32.lib is distributed with the compiler. So I downloaded the latest version of the lib from the MingGW website, but it still has the same problem. Is this just an incomplete implementation of the API? Do I have to buy MSVC++ to get the "official Microsoft version?" thanks, kman [Edited by - kman12 on January 23, 2005 10:37:05 PM]