Gcc is not recognising the ncurses.h file, how do I have to compile the program?
Gcc is not recognising the ncurses.h file, how do I have to compile the program?
gcc knows no more than any other compiler about ncurses. You would have to install the ncurses (or similar) package to make gcc able to compile code that uses ncurses. What OS is this?
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
Is ncurses installed on your machine? Or did you just read about it online and say "Sweet Jesus! I am going to use that!" Then proceed to attempt compiling code off the site that mentioned NCurses?
That's why I'm asking what do I have to input when compiling, someone told me "gcc -lncurses foo.c -o foo" but it's not recognizing it neither..
I'm on Ubuntu 8.04, I think the ncurses library is installed already
Damn, I confused the package for running aps with the dev one..
master5001, can you check my new fileserver code?
Something like this:
(I got that by googling "Install ncurses ubuntu", and found this forum: http://ubuntuforums.org/showthread.php?t=296224).Code:sudo apt-get install build-essentials sudo apt-get install libncurses5-dev
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
You bet I can, lautarox. Is it posted on the other thread? If not, just PM it to me.