Advertisement
Guest User

'pdcscrn.o' err: TDM GCC 5.1.0 pdcurs36

a guest
Jul 3rd, 2018
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.93 KB | None | 0 0
  1. C:\Program Files (x86)\CodeBlocks\pdcurs36fix\wincon>mingw32-make -f Makefile
  2. gcc -c -O2 -Wall -I.. ../wincon/pdcscrn.c
  3. ../wincon/pdcscrn.c:77:5: error: unknown type name 'PCONSOLE_SCREEN_BUFFER_INFOEX'
  4. PCONSOLE_SCREEN_BUFFER_INFOEX lpConsoleScreenBufferInfoEx);
  5. ^
  6. ../wincon/pdcscrn.c:79:5: error: unknown type name 'PCONSOLE_SCREEN_BUFFER_INFOEX'
  7. PCONSOLE_SCREEN_BUFFER_INFOEX lpConsoleScreenBufferInfoEx);
  8. ^
  9. ../wincon/pdcscrn.c:81:8: error: unknown type name 'SetConsoleScreenBufferInfoExFn'
  10. static SetConsoleScreenBufferInfoExFn pSetConsoleScreenBufferInfoEx = NULL;
  11. ^
  12. ../wincon/pdcscrn.c:82:8: error: unknown type name 'GetConsoleScreenBufferInfoExFn'
  13. static GetConsoleScreenBufferInfoExFn pGetConsoleScreenBufferInfoEx = NULL;
  14. ^
  15. ../wincon/pdcscrn.c:85:8: error: unknown type name 'CONSOLE_SCREEN_BUFFER_INFOEX'
  16. static CONSOLE_SCREEN_BUFFER_INFOEX console_infoex;
  17. ^
  18. ../wincon/pdcscrn.c: In function '_set_console_infoex':
  19. ../wincon/pdcscrn.c:187:10: error: called object 'pSetConsoleScreenBufferInfoEx' is not a function or function pointer
  20. if (!pSetConsoleScreenBufferInfoEx(pdc_con_out, &console_infoex))
  21. ^
  22. ../wincon/pdcscrn.c:81:39: note: declared here
  23. static SetConsoleScreenBufferInfoExFn pSetConsoleScreenBufferInfoEx = NULL;
  24. ^
  25. ../wincon/pdcscrn.c: In function '_init_console_infoex':
  26. ../wincon/pdcscrn.c:268:19: error: request for member 'cbSize' in something not a structure or union
  27. console_infoex.cbSize = sizeof(console_infoex);
  28. ^
  29. ../wincon/pdcscrn.c:270:10: error: called object 'pGetConsoleScreenBufferInfoEx' is not a function or function pointer
  30. if (!pGetConsoleScreenBufferInfoEx(pdc_con_out, &console_infoex))
  31. ^
  32. ../wincon/pdcscrn.c:82:39: note: declared here
  33. static GetConsoleScreenBufferInfoExFn pGetConsoleScreenBufferInfoEx = NULL;
  34. ^
  35. ../wincon/pdcscrn.c:273:19: error: request for member 'srWindow' in something not a structure or union
  36. console_infoex.srWindow.Right++;
  37. ^
  38. ../wincon/pdcscrn.c:274:19: error: request for member 'srWindow' in something not a structure or union
  39. console_infoex.srWindow.Bottom++;
  40. ^
  41. ../wincon/pdcscrn.c: In function '_get_colors':
  42. ../wincon/pdcscrn.c:284:28: error: request for member 'cbSize' in something not a structure or union
  43. if (!console_infoex.cbSize)
  44. ^
  45. ../wincon/pdcscrn.c:287:42: error: request for member 'ColorTable' in something not a structure or union
  46. (COLORREF *)(&(console_infoex.ColorTable));
  47. ^
  48. ../wincon/pdcscrn.c: In function 'PDC_scr_open':
  49. ../wincon/pdcscrn.c:476:10: error: 'GetConsoleScreenBufferInfoExFn' undeclared (first use in this function)
  50. (GetConsoleScreenBufferInfoExFn)GetProcAddress(h_kernel,
  51. ^
  52. ../wincon/pdcscrn.c:476:10: note: each undeclared identifier is reported only once for each function it appears in
  53. ../wincon/pdcscrn.c:476:41: error: expected ';' before 'GetProcAddress'
  54. (GetConsoleScreenBufferInfoExFn)GetProcAddress(h_kernel,
  55. ^
  56. ../wincon/pdcscrn.c:479:10: error: 'SetConsoleScreenBufferInfoExFn' undeclared (first use in this function)
  57. (SetConsoleScreenBufferInfoExFn)GetProcAddress(h_kernel,
  58. ^
  59. ../wincon/pdcscrn.c:479:41: error: expected ';' before 'GetProcAddress'
  60. (SetConsoleScreenBufferInfoExFn)GetProcAddress(h_kernel,
  61. ^
  62. ../wincon/pdcscrn.c:366:13: warning: variable 'h_kernel' set but not used [-Wunused-but-set-variable]
  63. HMODULE h_kernel;
  64. ^
  65. ../wincon/pdcscrn.c: In function '_get_colors':
  66. ../wincon/pdcscrn.c:295:1: warning: control reaches end of non-void function [-Wreturn-type]
  67. }
  68. ^
  69. Makefile:95: recipe for target 'pdcscrn.o' failed
  70. mingw32-make: *** [pdcscrn.o] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement