Add curses library to Visual Studio C++?

十年热恋 提交于 2019-12-01 20:37:05
Kuba Ober

In a nutshell: you want PDCurses.

What you did is not how to use curses at all. What you have downloaded is source code, there are no binaries there at all - no .lib nor .dll files for any architecture. Not only that, but the source code can't be directly compiled either -- if you'd have added it to a C/C++ project, even on a Unix box, it wouldn't compile.

In order to compile, curses needs to have a configure script run, that generates some files, probably config.h, perhaps other source files, and makefiles.

Alas, all that is a moot point because curses is AFAIK a Unix library that really depends on Unix APIs being present. Any Windows ports are completely separate efforts.

See also Is ncurses available for windows?.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!