Comments (3)
See the discussion here:
This particular issue is fixed in the current master branch, but you may run into more issues. My inclination is to just recommend that everyone switch to MinGW-w64 (even for 32-bit), and to formally drop PDCurses' support for these other, seemingly outdated versions of MinGW; but I'm open to further discussion on that.
from pdcurses.
Ok
Well,i clone a new version of PDCurses from master branch.And compile it with the same OS and Compiler.
It works.But i got another errors from the compiler:
../wincon/pdcscrn.c:77:5: error: unknown type name 'PCONSOLE_SCREEN_BUFFER_INFOEX'
PCONSOLE_SCREEN_BUFFER_INFOEX lpConsoleScreenBufferInfoEx);
^
../wincon/pdcscrn.c:79:5: error: unknown type name 'PCONSOLE_SCREEN_BUFFER_INFOEX'
PCONSOLE_SCREEN_BUFFER_INFOEX lpConsoleScreenBufferInfoEx);
^
../wincon/pdcscrn.c:81:8: error: unknown type name 'SetConsoleScreenBufferInfoExFn'
static SetConsoleScreenBufferInfoExFn pSetConsoleScreenBufferInfoEx = NULL;
^
../wincon/pdcscrn.c:82:8: error: unknown type name 'GetConsoleScreenBufferInfoExFn'
static GetConsoleScreenBufferInfoExFn pGetConsoleScreenBufferInfoEx = NULL;
^
../wincon/pdcscrn.c:85:8: error: unknown type name 'CONSOLE_SCREEN_BUFFER_INFOEX'
static CONSOLE_SCREEN_BUFFER_INFOEX console_infoex;
^
../wincon/pdcscrn.c: In function '_set_console_infoex':
../wincon/pdcscrn.c:187:10: error: called object 'pSetConsoleScreenBufferInfoEx' is not a function or function pointer
if (!pSetConsoleScreenBufferInfoEx(pdc_con_out, &console_infoex))
^
../wincon/pdcscrn.c:81:39: note: declared here
static SetConsoleScreenBufferInfoExFn pSetConsoleScreenBufferInfoEx = NULL;
^
../wincon/pdcscrn.c: In function '_init_console_infoex':
../wincon/pdcscrn.c:268:19: error: request for member 'cbSize' in something not a structure or union
console_infoex.cbSize = sizeof(console_infoex);
^
../wincon/pdcscrn.c:270:10: error: called object 'pGetConsoleScreenBufferInfoEx' is not a function or function pointer
if (!pGetConsoleScreenBufferInfoEx(pdc_con_out, &console_infoex))
^
../wincon/pdcscrn.c:82:39: note: declared here
static GetConsoleScreenBufferInfoExFn pGetConsoleScreenBufferInfoEx = NULL;
^
../wincon/pdcscrn.c:273:19: error: request for member 'srWindow' in something not a structure or union
console_infoex.srWindow.Right++;
^
../wincon/pdcscrn.c:274:19: error: request for member 'srWindow' in something not a structure or union
console_infoex.srWindow.Bottom++;
^
../wincon/pdcscrn.c: In function '_get_colors':
../wincon/pdcscrn.c:284:28: error: request for member 'cbSize' in something not a structure or union
if (!console_infoex.cbSize)
^
../wincon/pdcscrn.c:287:42: error: request for member 'ColorTable' in something not a structure or union
(COLORREF *)(&(console_infoex.ColorTable));
^
../wincon/pdcscrn.c: In function 'PDC_scr_open':
../wincon/pdcscrn.c:476:10: error: 'GetConsoleScreenBufferInfoExFn' undeclared (first use in this function)
(GetConsoleScreenBufferInfoExFn)GetProcAddress(h_kernel,
^
../wincon/pdcscrn.c:476:10: note: each undeclared identifier is reported only once for each function it appears in
../wincon/pdcscrn.c:476:41: error: expected ';' before 'GetProcAddress'
(GetConsoleScreenBufferInfoExFn)GetProcAddress(h_kernel,
^
../wincon/pdcscrn.c:479:10: error: 'SetConsoleScreenBufferInfoExFn' undeclared (first use in this function)
(SetConsoleScreenBufferInfoExFn)GetProcAddress(h_kernel,
^
../wincon/pdcscrn.c:479:41: error: expected ';' before 'GetProcAddress'
(SetConsoleScreenBufferInfoExFn)GetProcAddress(h_kernel,
^
../wincon/pdcscrn.c:366:13: warning: variable 'h_kernel' set but not used [-Wunused-but-set-variable]
HMODULE h_kernel;
^
../wincon/pdcscrn.c: In function '_get_colors':
../wincon/pdcscrn.c:295:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
.\Makefile:95: recipe for target 'pdcscrn.o' failed
mingw32-make: *** [pdcscrn.o] Error 1
from pdcurses.
Well, i can`t change my compiler in my job.It does not my bussiness.So i think, maybe i should use another lib replace it.
from pdcurses.
Related Issues (20)
- Is it normal that several styles don't work correctly in PowerShell? HOT 7
- Enabling support for showing window after process put to sleep (SDL2) HOT 4
- SDL_GetError() returns "Parameter 'src' is invalid" after call to initscr() for sdl2 HOT 2
- ncurses compat: add WACS_D_LRCORNER and other double line drawings
- SDL2 port missing support for PDC_PRESERVE_SCREEN HOT 4
- WinCon, endwin() kills QuickEdit/InsertMode options and more.. HOT 8
- touchoverlap() un-touches parts of lines HOT 1
- addition of vt port from Bill-Gray HOT 1
- additional gitpod config
- No rule to make target '../common/libobjs.mif'. Stop. HOT 5
- Unable to get mouse position when hovering HOT 9
- SDL2 build fails for Mac/Linux in Github HOT 2
- When resizing the SDL2 window, the surface isn't refreshed
- Build failure when building PDcurses DLL library for Window console HOT 1
- Debugging? HOT 1
- printw.c - for Unicode? HOT 3
- wresize doesn't return ERR if the window size requested is too big HOT 3
- Unable to initialize soft label keys HOT 2
- missing escapes in configure script HOT 1
- Scrolling and inserting/deleting lines
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pdcurses.