PDA

View Full Version : Error compiling "Display" solution



user
01-11-2011, 05:23 PM
I've just downloaded all files of ClanLib 2.2 from SVN, and got this error while building it:

http://img130.imageshack.us/img130/9471/errorxw.png

I'm using Windows and VS 2010. I think, this error was caused by this patch:
http://www.rtsoft.com/forums/showthread.php?3739-Numpad-enter-key-patch
CL_KEY_NUMPAD_ENTER and CL_KEY_RETURN defines have the same value of 13, and the're both in the same switch. I don't know what is the best way to fix this bug. Do other developers have any ideas?

rombust
01-12-2011, 08:48 AM
Patched, using:


+#ifndef WIN32
case CL_KEY_NUMPAD_ENTER: return "numpad_enter";
+#endif


thanks

spin
01-16-2011, 10:36 AM
The same error could very likely also appear on apple computers. Thus, it might be better to use


#if !defined(WIN32) && !defined(__APPLE__)


But as the original numpad patch, this is tested only on linux (!)

Cheers,
spin

rombust
01-16-2011, 05:42 PM
Yeah, but ClanLib 2.x does not compile on Apple ;)

Maybe one day someone will send a patch.

(Ref: http://www.rtsoft.com/forums/showthread.php?3362-ClanLib-2-OS-X-Snow-Leopard-(Macintosh) )