can't compile: ..\EmWin\inc\GUI_Type.h(line): error: #Num: identifier "Somethings" is undefined

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • can't compile: ..\EmWin\inc\GUI_Type.h(line): error: #Num: identifier "Somethings" is undefined

    Hi.
    i tried to port STemwin to my project using this tut...
    but after compiling i faced these errors:

    Source Code

    1. ..\EmWin\inc\GUI_Type.h(70): error: #20: identifier "LCD_COLOR" is undefined
    2. typedef LCD_COLOR GUI_COLOR;
    3. ..\EmWin\inc\GUI_Type.h(71): error: #20: identifier "LCD_LOGPALETTE" is undefined
    4. typedef LCD_LOGPALETTE GUI_LOGPALETTE;
    5. ..\EmWin\inc\GUI_Type.h(72): error: #20: identifier "LCD_DRAWMODE" is undefined
    6. typedef LCD_DRAWMODE GUI_DRAWMODE;
    7. ..\EmWin\inc\GUI_Type.h(73): error: #20: identifier "LCD_RECT" is undefined
    8. typedef LCD_RECT GUI_RECT;
    9. ..\EmWin\inc\GUI_Type.h(80): error: #20: identifier "U8" is undefined
    10. const U8 * pPixel,
    11. ..\EmWin\inc\GUI_Type.h(81): error: #20: identifier "LCD_LOGPALETTE" is undefined
    12. const LCD_LOGPALETTE * pLogPal,
    13. ..\EmWin\inc\GUI_Type.h(89): error: #20: identifier "U8" is undefined
    14. const U8 * pPixel,
    15. ..\EmWin\inc\GUI_Type.h(90): error: #20: identifier "LCD_LOGPALETTE" is undefined
    16. const LCD_LOGPALETTE * pLogPal,
    17. ..\EmWin\inc\GUI_Type.h(93): error: #20: identifier "LCD_API_COLOR_CONV" is undefined
    18. const LCD_API_COLOR_CONV * pColorConvAPI;
    19. ..\EmWin\inc\GUI_Type.h(97): error: #20: identifier "U16P" is undefined
    20. U16P XSize;
    21. ..\EmWin\inc\GUI_Type.h(98): error: #20: identifier "U16P" is undefined
    22. U16P YSize;
    23. ..\EmWin\inc\GUI_Type.h(99): error: #20: identifier "U16P" is undefined
    24. U16P BytesPerLine;
    25. ..\EmWin\inc\GUI_Type.h(100): error: #20: identifier "U16P" is undefined
    26. U16P BitsPerPixel;
    27. ..\EmWin\inc\GUI_Type.h(101): error: #20: identifier "U8" is undefined
    28. const U8 * pData;
    29. ..\EmWin\inc\GUI_Type.h(112): error: #20: identifier "U16" is undefined
    30. U16 ID;
    31. ..\EmWin\inc\GUI_Type.h(113): error: #20: identifier "U16" is undefined
    32. U16 Format;
    33. ..\EmWin\inc\GUI_Type.h(114): error: #20: identifier "U16" is undefined
    34. U16 XSize;
    35. ..\EmWin\inc\GUI_Type.h(115): error: #20: identifier "U16" is undefined
    36. U16 YSize;
    37. ..\EmWin\inc\GUI_Type.h(116): error: #20: identifier "U16" is undefined
    38. U16 BytesPerLine;
    39. ..\EmWin\inc\GUI_Type.h(117): error: #20: identifier "U16" is undefined
    40. U16 BitsPerPixel;
    41. ..\EmWin\inc\GUI_Type.h(118): error: #20: identifier "U16" is undefined
    42. U16 NumColors;
    43. ..\EmWin\inc\GUI_Type.h(119): error: #20: identifier "U16" is undefined
    44. U16 HasTrans;
    45. ..\EmWin\inc\GUI_Type.h(124): error: #20: identifier "U32" is undefined
    46. U32 v;
    47. ..\EmWin\inc\GUI_Type.h(140): error: #20: identifier "U8" is undefined
    48. U8 Pressed;
    49. ..\EmWin\inc\GUI_Type.h(141): error: #20: identifier "U8" is undefined
    50. U8 Layer;
    51. ..\EmWin\inc\GUI_Type.h(189): error: #20: identifier "I16P" is undefined
    52. I16P c0;
    53. ..\EmWin\inc\GUI_Type.h(190): error: #20: identifier "I16P" is undefined
    54. I16P c1;
    55. ..\EmWin\inc\GUI_Type.h(194): error: #20: identifier "U16P" is undefined
    56. U16P FirstChar;
    57. ..\EmWin\inc\GUI_Type.h(195): error: #20: identifier "U16P" is undefined
    58. U16P LastChar;
    59. ..\EmWin\inc\GUI_Type.h(200): error: #20: identifier "U8" is undefined
    60. U8 XSize;
    61. ../Src/main.c: 0 warnings, 30 errors
    Display All
    i know.. these errors caused by some missing #include .. probably? but don't know which one...

    help me please :(