when i begin start learn nim language , i write a cursers program, then the error present, i comment line 43 , but new error present. i not find the answer in doc page and forum ...
src file content
import pdcurses initscr();
The Windows API wrapper (windows.nim) is now not part of the official distribution anymore. Instead use the oldwinapi Nimble package.
i download oldwinapi.zip, add windows.nim to lib/wrappers,
e:\work\nim> nim c curses01.nim
Hint: used config file 'd:\nim0150\config\nim.cfg'[Conf]
Hint: system [Processing]
Hint: curses01 [Processing]
Hint: pdcurses [Processing]
Hint: windows [Processing]
lib\wrappers\pdcurses.nim(565, 66) Error : undeclared indentifier: 'MOUSE_STATUS'
i download oldwinapi.zip, add windows.nim to lib/wrappers,
Why did you not try something like
nimble install oldwinapi
There may be a reason why Dominik wrote the nimble package manager. (I can not test that command, no Windows here.) And of course you may be interested in buying his book :-)
but the error present just the same.
e:\work\nim> nim c curses01.nim
Hint: used config file 'd:\nim0150\config\nim.cfg'[Conf]
Hint: system [Processing]
Hint: curses01 [Processing]
Hint: pdcurses [Processing]
Hint: windows [Processing]
lib\wrappers\pdcurses.nim(565, 66) Error : undeclared indentifier: 'MOUSE_STATUS'
e:\work\nim> nim c curses01.nim
Hint: used config file 'd:\nim0150\config\nim.cfg'[Conf]
Hint: system [Processing]
Hint: curses01 [Processing]
Hint: ncurses [Processing]
CC: curses01
CC: stdlib_system
CC: ncurses_nucrses
Hint: [Link]
Hint: operation successful(10823 lines compiled; 5.761 sec total; 16.004Mib; Debug Build)[SuccessX]