Lamvuong
11-06-2002, 02:32 PM
hi i am new to linux... what the problem is compiling...
its a simple code but i dont know how to compile and then run the stupid thing.
using emacs to write code and console to compile.
everything compile with no error
#include <stdio.h>
main()
{
printf("hello");
}
well its not about skills of programing here the problem is when i compile there is no error and when i run ./a.out no output is display is linux extended or something command i used to compile is gcc (filename) please tell me how to compile and run i am using redhat 8.0 psyche thanks
its a simple code but i dont know how to compile and then run the stupid thing.
using emacs to write code and console to compile.
everything compile with no error
#include <stdio.h>
main()
{
printf("hello");
}
well its not about skills of programing here the problem is when i compile there is no error and when i run ./a.out no output is display is linux extended or something command i used to compile is gcc (filename) please tell me how to compile and run i am using redhat 8.0 psyche thanks