Building glList.cpp broken?

Building glList.cpp broken?

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
Belmakor
Posts: 212
Joined: 16 Nov 2005, 00:01

Building glList.cpp broken?

Post by Belmakor »

I just did a svn update this morning and attempted a rebuild (Visual C++ 2005 Express Edition) and got this error I had not seen before:

Code: Select all

1>..\..\Rendering\GL\glList.cpp(155) : error C2039: 'isalnum' : is not a member of 'std'
1>..\..\Rendering\GL\glList.cpp(156) : error C2039: 'tolower' : is not a member of 'std'
1>..\..\Rendering\GL\glList.cpp(169) : error C2039: 'tolower' : is not a member of 'std'
1>..\..\Rendering\GL\glList.cpp(169) : error C2039: 'tolower' : is not a member of 'std'
Any ideas?
User avatar
ILMTitan
Spring Developer
Posts: 410
Joined: 13 Nov 2004, 08:35

Post by ILMTitan »

<locale> is not included, but even if you do, there are still errors I don't know how to resolve.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

I wonder why it works in other files then without including locale... As far as I know isalnum&tolower are in cctype / ctype.h according to C++ standard, and not in locale or whatever other header.

Anyway, paste all errors you get so I can fix it.
User avatar
ILMTitan
Spring Developer
Posts: 410
Joined: 13 Nov 2004, 08:35

Post by ILMTitan »

removing the std:: before the function calls fixes the problem.


I'm using MSVC++ 2003.

An instance where the error was exactly what the problem really was. Weird.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

k I'll change&commit that then
Post Reply

Return to “Engine”