View Full Version : glMatrixMode error
04-29-2004, 08:42 AM
Whenever I use the glMatrixMode function given any parameters it gives the following error :
C:\My Documents\Alex\C++\Ogl\OGL.cpp(41) : error C2065: 'glMatirxMode' : undeclared identifier
The line that gives this error is :
If anyone has any idea why this is happening please help.
04-29-2004, 09:01 AM
Check your spelling.
04-29-2004, 09:04 AM
I copied this code off a book so it is unlikely that they mispelled.
04-29-2004, 09:37 AM
glMatrixMode...if it's written in a book, it doesn't mean that it's spelled right.
04-29-2004, 11:00 AM
Sory it was my mistake. But I spelt it right in the cpp file.
04-29-2004, 11:01 AM
See what I mean I can't even spell "sorry".
04-29-2004, 11:11 AM
Thanks for all the help. I managed to fix it. The error wasn't in the glMatrixMode line it was in some code I wrote before. Sorry to bother everyone.
04-29-2004, 12:25 PM
Not to kick a dead horse or anything, but 'undeclared identifier' errors can not propogate from another part of the code. They are always isolated to the line that generated them. That error was a result of the line it was telling you was at fault.
I'm only telling you this to save you time of scanning over code in the future when you come across something like this again.
anyway, happy graphic programming.
04-29-2004, 12:39 PM
Actually my compiler has been screwing up quite a bit lately (probably because of all the junk I've been installing on my computer) so reinstalling it would probably be a good idea.
04-29-2004, 12:44 PM
Well it wasn't really code that was screwing it up it was not properly conected files I just didn't feel like saying "I can't even link files properly".
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.