Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in last commit #575

Closed
masrourmouad opened this issue Mar 19, 2019 · 1 comment
Closed

Bug in last commit #575

masrourmouad opened this issue Mar 19, 2019 · 1 comment
Labels

Comments

@masrourmouad
Copy link

Window.c:676:8: error: unknown type name ‘XVisualInfo’
static XVisualInfo win_visual;
^
Window.c: In function ‘Window_MapKey’:
Window.c:695:13: error: ‘XK_0’ undeclared (first use in this function)
if (key >= XK_0 && key <= XK_9) { return '0' + (key - XK_0); }
^
Window.c:695:13: note: each undeclared identifier is reported only once for each function it appears in
Window.c:695:28: error: ‘XK_9’ undeclared (first use in this function)
if (key >= XK_0 && key <= XK_9) { return '0' + (key - XK_0); }
^
Window.c:696:13: error: ‘XK_A’ undeclared (first use in this function)
if (key >= XK_A && key <= XK_Z) { return 'A' + (key - XK_A); }
^
Window.c:696:28: error: ‘XK_Z’ undeclared (first use in this function)
if (key >= XK_A && key <= XK_Z) { return 'A' + (key - XK_A); }
^
Window.c:697:13: error: ‘XK_a’ undeclared (first use in this function)
if (key >= XK_a && key <= XK_z) { return 'A' + (key - XK_a); }
^
Window.c:697:28: error: ‘XK_z’ undeclared (first use in this function)
if (key >= XK_a && key <= XK_z) { return 'A' + (key - XK_a); }
^
Window.c:699:13: error: ‘XK_F1’ undeclared (first use in this function)
if (key >= XK_F1 && key <= XK_F35) { return KEY_F1 + (key - XK_F1); }
^
Window.c:699:29: error: ‘XK_F35’ undeclared (first use in this function)
if (key >= XK_F1 && key <= XK_F35) { return KEY_F1 + (key - XK_F1); }
^
Window.c:700:13: error: ‘XK_KP_0’ undeclared (first use in this function)
if (key >= XK_KP_0 && key <= XK_KP_9) { return KEY_KP0 + (key - XK_KP_0); }
^
Window.c:700:31: error: ‘XK_KP_9’ undeclared (first use in this function)
if (key >= XK_KP_0 && key <= XK_KP_9) { return KEY_KP0 + (key - XK_KP_0); }
^
Window.c:703:8: error: ‘XK_Escape’ undeclared (first use in this function)
case XK_Escape: return KEY_ESCAPE;
^
Window.c:704:8: error: ‘XK_Return’ undeclared (first use in this function)
case XK_Return: return KEY_ENTER;
^
Window.c:705:8: error: ‘XK_space’ undeclared (first use in this function)
case XK_space: return KEY_SPACE;
^
Window.c:706:8: error: ‘XK_BackSpace’ undeclared (first use in this function)
case XK_BackSpace: return KEY_BACKSPACE;
^
Window.c:708:8: error: ‘XK_Shift_L’ undeclared (first use in this function)
case XK_Shift_L: return KEY_LSHIFT;
^
Window.c:709:8: error: ‘XK_Shift_R’ undeclared (first use in this function)
case XK_Shift_R: return KEY_RSHIFT;
^
Window.c:710:8: error: ‘XK_Alt_L’ undeclared (first use in this function)
case XK_Alt_L: return KEY_LALT;
^
Window.c:711:8: error: ‘XK_Alt_R’ undeclared (first use in this function)
case XK_Alt_R: return KEY_RALT;
^
Window.c:712:8: error: ‘XK_Control_L’ undeclared (first use in this function)
case XK_Control_L: return KEY_LCTRL;
^
Window.c:713:8: error: ‘XK_Control_R’ undeclared (first use in this function)
case XK_Control_R: return KEY_RCTRL;
^
Window.c:714:8: error: ‘XK_Super_L’ undeclared (first use in this function)
case XK_Super_L: return KEY_LWIN;
^
Window.c:715:8: error: ‘XK_Super_R’ undeclared (first use in this function)
case XK_Super_R: return KEY_RWIN;
^
Window.c:716:8: error: ‘XK_Meta_L’ undeclared (first use in this function)
case XK_Meta_L: return KEY_LWIN;
^
Window.c:717:8: error: ‘XK_Meta_R’ undeclared (first use in this function)
case XK_Meta_R: return KEY_RWIN;
^
Window.c:719:8: error: ‘XK_Menu’ undeclared (first use in this function)
case XK_Menu: return KEY_MENU;
^
Window.c:720:8: error: ‘XK_Tab’ undeclared (first use in this function)
case XK_Tab: return KEY_TAB;
^
Window.c:721:8: error: ‘XK_minus’ undeclared (first use in this function)
case XK_minus: return KEY_MINUS;
^
Window.c:722:8: error: ‘XK_plus’ undeclared (first use in this function)
case XK_plus: return KEY_PLUS;
^
Window.c:723:8: error: ‘XK_equal’ undeclared (first use in this function)
case XK_equal: return KEY_PLUS;
^
Window.c:725:8: error: ‘XK_Caps_Lock’ undeclared (first use in this function)
case XK_Caps_Lock: return KEY_CAPSLOCK;
^
Window.c:726:8: error: ‘XK_Num_Lock’ undeclared (first use in this function)
case XK_Num_Lock: return KEY_NUMLOCK;
^
Window.c:728:8: error: ‘XK_Pause’ undeclared (first use in this function)
case XK_Pause: return KEY_PAUSE;
^
Window.c:729:8: error: ‘XK_Break’ undeclared (first use in this function)
case XK_Break: return KEY_PAUSE;
^
Window.c:730:8: error: ‘XK_Scroll_Lock’ undeclared (first use in this function)
case XK_Scroll_Lock: return KEY_SCROLLLOCK;
^
Window.c:731:8: error: ‘XK_Insert’ undeclared (first use in this function)
case XK_Insert: return KEY_INSERT;
^
Window.c:732:8: error: ‘XK_Print’ undeclared (first use in this function)
case XK_Print: return KEY_PRINTSCREEN;
^
Window.c:733:8: error: ‘XK_Sys_Req’ undeclared (first use in this function)
case XK_Sys_Req: return KEY_PRINTSCREEN;
^
Window.c:735:8: error: ‘XK_backslash’ undeclared (first use in this function)
case XK_backslash: return KEY_BACKSLASH;
^
Window.c:736:8: error: ‘XK_bar’ undeclared (first use in this function)
case XK_bar: return KEY_BACKSLASH;
^
Window.c:737:8: error: ‘XK_braceleft’ undeclared (first use in this function)
case XK_braceleft: return KEY_LBRACKET;
^
Window.c:738:8: error: ‘XK_bracketleft’ undeclared (first use in this function)
case XK_bracketleft: return KEY_LBRACKET;
^
Window.c:739:8: error: ‘XK_braceright’ undeclared (first use in this function)
case XK_braceright: return KEY_RBRACKET;
^
Window.c:740:8: error: ‘XK_bracketright’ undeclared (first use in this function)
case XK_bracketright: return KEY_RBRACKET;
^
Window.c:741:8: error: ‘XK_colon’ undeclared (first use in this function)
case XK_colon: return KEY_SEMICOLON;
^
Window.c:742:8: error: ‘XK_semicolon’ undeclared (first use in this function)
case XK_semicolon: return KEY_SEMICOLON;
^
Window.c:743:8: error: ‘XK_quoteright’ undeclared (first use in this function)
case XK_quoteright: return KEY_QUOTE;
^
Window.c:744:8: error: ‘XK_quotedbl’ undeclared (first use in this function)
case XK_quotedbl: return KEY_QUOTE;
^
Window.c:745:8: error: ‘XK_quoteleft’ undeclared (first use in this function)
case XK_quoteleft: return KEY_TILDE;
^
Window.c:746:8: error: ‘XK_asciitilde’ undeclared (first use in this function)
case XK_asciitilde: return KEY_TILDE;
^
Window.c:748:8: error: ‘XK_comma’ undeclared (first use in this function)
case XK_comma: return KEY_COMMA;
^
Window.c:749:8: error: ‘XK_less’ undeclared (first use in this function)
case XK_less: return KEY_COMMA;
^
Window.c:750:8: error: ‘XK_period’ undeclared (first use in this function)
case XK_period: return KEY_PERIOD;
^
Window.c:751:8: error: ‘XK_greater’ undeclared (first use in this function)
case XK_greater: return KEY_PERIOD;
^
Window.c:752:8: error: ‘XK_slash’ undeclared (first use in this function)
case XK_slash: return KEY_SLASH;
^
Window.c:753:8: error: ‘XK_question’ undeclared (first use in this function)
case XK_question: return KEY_SLASH;
^
Window.c:755:8: error: ‘XK_Left’ undeclared (first use in this function)
case XK_Left: return KEY_LEFT;
^
Window.c:756:8: error: ‘XK_Down’ undeclared (first use in this function)
case XK_Down: return KEY_DOWN;
^
Window.c:757:8: error: ‘XK_Right’ undeclared (first use in this function)
case XK_Right: return KEY_RIGHT;
^
Window.c:758:8: error: ‘XK_Up’ undeclared (first use in this function)
case XK_Up: return KEY_UP;
^
Window.c:760:8: error: ‘XK_Delete’ undeclared (first use in this function)
case XK_Delete: return KEY_DELETE;
^
Window.c:761:8: error: ‘XK_Home’ undeclared (first use in this function)
case XK_Home: return KEY_HOME;
^
Window.c:762:8: error: ‘XK_End’ undeclared (first use in this function)
case XK_End: return KEY_END;
^
Window.c:763:8: error: ‘XK_Page_Up’ undeclared (first use in this function)
case XK_Page_Up: return KEY_PAGEUP;
^
Window.c:764:8: error: ‘XK_Page_Down’ undeclared (first use in this function)
case XK_Page_Down: return KEY_PAGEDOWN;
^
Window.c:766:8: error: ‘XK_KP_Add’ undeclared (first use in this function)
case XK_KP_Add: return KEY_KP_PLUS;
^
Window.c:767:8: error: ‘XK_KP_Subtract’ undeclared (first use in this function)
case XK_KP_Subtract: return KEY_KP_MINUS;
^
Window.c:768:8: error: ‘XK_KP_Multiply’ undeclared (first use in this function)
case XK_KP_Multiply: return KEY_KP_MULTIPLY;
^
Window.c:769:8: error: ‘XK_KP_Divide’ undeclared (first use in this function)
case XK_KP_Divide: return KEY_KP_DIVIDE;
^
Window.c:770:8: error: ‘XK_KP_Decimal’ undeclared (first use in this function)
case XK_KP_Decimal: return KEY_KP_DECIMAL;
^
Window.c:771:8: error: ‘XK_KP_Insert’ undeclared (first use in this function)
case XK_KP_Insert: return KEY_KP0;
^
Window.c:772:8: error: ‘XK_KP_End’ undeclared (first use in this function)
case XK_KP_End: return KEY_KP1;
^
Window.c:773:8: error: ‘XK_KP_Down’ undeclared (first use in this function)
case XK_KP_Down: return KEY_KP2;
^
Window.c:774:8: error: ‘XK_KP_Page_Down’ undeclared (first use in this function)
case XK_KP_Page_Down: return KEY_KP3;
^
Window.c:775:8: error: ‘XK_KP_Left’ undeclared (first use in this function)
case XK_KP_Left: return KEY_KP4;
^
Window.c:776:8: error: ‘XK_KP_Begin’ undeclared (first use in this function)
case XK_KP_Begin: return KEY_KP5;
^
Window.c:777:8: error: ‘XK_KP_Right’ undeclared (first use in this function)
case XK_KP_Right: return KEY_KP6;
^
Window.c:778:8: error: ‘XK_KP_Home’ undeclared (first use in this function)
case XK_KP_Home: return KEY_KP7;
^
Window.c:779:8: error: ‘XK_KP_Up’ undeclared (first use in this function)
case XK_KP_Up: return KEY_KP8;
^
Window.c:780:8: error: ‘XK_KP_Page_Up’ undeclared (first use in this function)
case XK_KP_Page_Up: return KEY_KP9;
^
Window.c:781:8: error: ‘XK_KP_Delete’ undeclared (first use in this function)
case XK_KP_Delete: return KEY_KP_DECIMAL;
^
Window.c:782:8: error: ‘XK_KP_Enter’ undeclared (first use in this function)
case XK_KP_Enter: return KEY_KP_ENTER;
^
Window.c: At top level:
Window.c:848:8: error: unknown type name ‘XVisualInfo’
static XVisualInfo GLContext_SelectVisual(struct GraphicsMode* mode);
^
Window.c: In function ‘Window_Create’:
Window.c:867:2: error: unknown type name ‘XSizeHints’
XSizeHints hints = { 0 };
^
Window.c:883:78: error: request for member ‘visual’ in something not a structure or union
attributes.colormap = XCreateColormap(win_display, win_rootWin, win_visual.visual, AllocNone);
^
Window.c:887:16: error: request for member ‘depth’ in something not a structure or union
0, win_visual.depth /* CopyFromParent*/, InputOutput, win_visual.visual,
^
Window.c:887:67: error: request for member ‘visual’ in something not a structure or union
0, win_visual.depth /* CopyFromParent*/, InputOutput, win_visual.visual,
^
Window.c:891:7: error: request for member ‘base_width’ in something not a structure or union
hints.base_width = width;
^
Window.c:892:7: error: request for member ‘base_height’ in something not a structure or union
hints.base_height = height;
^
Window.c:893:7: error: request for member ‘flags’ in something not a structure or union
hints.flags = PSize | PPosition;
^
Window.c:893:16: error: ‘PSize’ undeclared (first use in this function)
hints.flags = PSize | PPosition;
^
Window.c:893:24: error: ‘PPosition’ undeclared (first use in this function)
hints.flags = PSize | PPosition;
^
Window.c: In function ‘X11_MessageBox’:
Window.c:1443:2: error: unknown type name ‘XSizeHints’
XSizeHints hints = { 0 };
^
Window.c:1480:10: error: request for member ‘flags’ in something not a structure or union
hints.flags = PSize | PMinSize | PMaxSize;
^
Window.c:1480:24: error: ‘PSize’ undeclared (first use in this function)
hints.flags = PSize | PMinSize | PMaxSize;
^
Window.c:1480:32: error: ‘PMinSize’ undeclared (first use in this function)
hints.flags = PSize | PMinSize | PMaxSize;
^
Window.c:1480:43: error: ‘PMaxSize’ undeclared (first use in this function)
hints.flags = PSize | PMinSize | PMaxSize;
^
Window.c:1481:10: error: request for member ‘min_width’ in something not a structure or union
hints.min_width = hints.max_width = hints.base_width = width;
^
Window.c:1481:29: error: request for member ‘max_width’ in something not a structure or union
hints.min_width = hints.max_width = hints.base_width = width;
^
Window.c:1481:48: error: request for member ‘base_width’ in something not a structure or union
hints.min_width = hints.max_width = hints.base_width = width;
^
Window.c:1482:10: error: request for member ‘min_height’ in something not a structure or union
hints.min_height = hints.max_height = hints.base_height = height;
^
Window.c:1482:29: error: request for member ‘max_height’ in something not a structure or union
hints.min_height = hints.max_height = hints.base_height = height;
^
Window.c:1482:48: error: request for member ‘base_height’ in something not a structure or union
hints.min_height = hints.max_height = hints.base_height = height;
^
Window.c:1513:46: error: ‘XK_Escape’ undeclared (first use in this function)
if (XLookupKeysym(&e.xkey, 0) == XK_Escape) return;
^
Window.c: In function ‘Window_InitRaw’:
Window.c:1544:50: error: request for member ‘visual’ in something not a structure or union
win_image = XCreateImage(win_display, win_visual.visual,
^
Window.c:1545:13: error: request for member ‘depth’ in something not a structure or union
win_visual.depth, ZPixmap, 0, bmp->Scan0,
^
Window.c: At top level:
Window.c:2721:20: error: conflicting types for ‘GLContext_SelectVisual’
static XVisualInfo GLContext_SelectVisual(struct GraphicsMode* mode) {
^
Window.c:848:20: note: previous declaration of ‘GLContext_SelectVisual’ was here
static XVisualInfo GLContext_SelectVisual(struct GraphicsMode* mode);
^
Makefile:14: recipe for target 'Window.o' failed
make: *** [Window.o] Error 1

@UnknownShadow200
Copy link
Collaborator

already aware, combining it with next commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants