Results 1 to 4 of 4

Thread: Error compiling "Display" solution

  1. #1
    Lesser Knight
    Join Date
    Jan 2011
    Posts
    32

    Lightbulb Error compiling "Display" project

    I've just downloaded all files of ClanLib 2.2 from SVN, and got this error while building it:



    I'm using Windows and VS 2010. I think, this error was caused by this patch:
    http://www.rtsoft.com/forums/showthr...nter-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?
    Last edited by user; 01-11-2011 at 09:07 PM.

  2. #2
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    Patched, using:
    Code:
    +#ifndef WIN32
     		case CL_KEY_NUMPAD_ENTER: return "numpad_enter";
    +#endif
    thanks

  3. #3
    Lesser Knight
    Join Date
    Jan 2011
    Location
    Vienna, Austria
    Posts
    30

    Default

    The same error could very likely also appear on apple computers. Thus, it might be better to use
    Code:
    #if !defined(WIN32) && !defined(__APPLE__)
    But as the original numpad patch, this is tested only on linux (!)

    Cheers,
    spin

  4. #4
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    Yeah, but ClanLib 2.x does not compile on Apple

    Maybe one day someone will send a patch.

    (Ref: http://www.rtsoft.com/forums/showthr...ard-(Macintosh) )

Similar Threads

  1. How I make a "text" object with custom font?
    By speeder in forum Novashell Game Creation System
    Replies: 1
    Last Post: 04-10-2010, 02:23 AM
  2. Pilgrimís Quest: Problem in "Welcome to Fire woods!"
    By Floater in forum Dink Smallwood HD
    Replies: 0
    Last Post: 08-18-2009, 06:07 PM
  3. Replies: 5
    Last Post: 07-06-2009, 01:35 PM
  4. Multiple "keydown" signals on a single keystroke
    By zag in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 10-19-2008, 11:04 PM
  5. Di-Mart Guns -Explanation of the "Store Guy" event
    By rmcnew in forum Funeral Quest
    Replies: 2
    Last Post: 01-15-2004, 06:25 AM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •