I was tryign to install svgalib for using graphics in C. Tried to install svgalib. though i followed the instructions for installation correctly to my knowledge, i am getting the following error when i tried to compile a program.
gcc sample.c -o sample -lvga.c
gives me the following error
/usr/bin/ld: cannot find -lvga
collect2: ld returned 1 exit status
All the header files were installed in /usr/local/includel
so used ln /usr/include/vga* -> /usr/local/include/vga*
since i was trying to link vga.h. but still it did not work
I have used previous gcc -lm to include math.h.
any views why this error occurred?