Im new to programming and linux. i'm running redhat 8.0 i have a simple intro to c class and i want to be able to make my programs under linux. i thougth this would be very easy with gcc and all but when i make a program in vi or any editor then try to compile it with gcc i get errors.
this is the program
#include <stdio.h>
#include <conio.h>
void main(void)
{
printf("asdf");
getch();
}
as you can see this is a very simple program. when i use gcc to compile it cannot find conio.h . after a while i gave up on using command prompt to do this so i installed anjuta. but when i use anjuta to compile the same program i managed to add the directory that has conio.h so it can do a compile and a compile with make successfully, but when i go to do a build i get
/usr/bin/ld: cannot find -lconsole
collect2: ld returned 1 exit status
i am not logged in as root, any help would be greatly appreciated.
acascianellI@hotmail.com