Search code examples
cheader-fileslib

How to properly install additional C header files in VS 2022


Recently started messing with C and found that ncurses.h and dirent_win.h exist, but vs does not have it internally, i have found a few ways and sites but is there any site and method that is reccomended for getting such libraries.

I tried looking for ways to install but mostly found stuff for linux so not sure what to do since i am using win10


Solution

  • .h files are not libraries, and even if you include them it will not allow you to use functions and data types declared there. You need also a source code of the library or a compiled library.

    For windows I would rather recommend something less Linux-centric like https://github.com/wmcbrine/PDCurses

    You will need to clone the repo and build the library.