C Library
SourceForge is a good resource for finding C libraries . Finding a C library is super easy - google. So what’s the issue then? Installing and linking a library can be frustrating. Better use a package manager, APT(Advanced Package Tool) for Ubuntu. C libraries usually have the suffix -dev. Let say you need to install ncurses library.
``` sudo apt search ncurses
sudo apt-get install libncurses-dev ```
To check whether it is installed or not? ``` less /usr/include/ncurses.h ```
if not found there, then check in /usr/local/ directory ``` less /usr/local/include/ncurses.h
```
C code file.c
``` #include #include
int main() { printf("this is version %s\n", NCURSES_VERSION); return (0); } ```
to execute it
``` gcc -lncurses.c file.c -o out ./out
```
-l means linker
use -L~/Library_Directory if -lncurses.c gives error


















