LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   File compile errors ?? (https://www.linuxquestions.org/questions/linux-general-1/file-compile-errors-33728/)

c00L_3oy 10-25-2002 11:07 AM

there's somthing....
 
I have installed RedHat 8.0 ....
I created a file called test.c
#include <stdio.h>
void main()
{
printf("test");
}

This is what I get in my terminal

[root@localhost]#gcc -o test test.c
[root@localhost]#./test
[root@localhost]#

so I can't open the file ....
than I downloaded some other *.c files
but I have the same problem

jetblackz 10-25-2002 11:35 AM

gcc filename.c -o filename
g++ filename.cpp -o filename

./filename

Does it compile at all? What do you see?

NSKL 10-25-2002 02:10 PM

Did you setup execute permissions on it?
chmod a+x test
./test
HTH
-NSKL

c00L_3oy 10-25-2002 02:10 PM

this is on my screen...

[root@localhost]#gcc -o test test.c
[root@localhost]#./test
[root@localhost]#

theres no erorr messages thers nothing it compiles the program but i don't know why i can't open it ...
I send the exectuble file that i creating from compiling to my freind and he can open it but i can't open it....

c00L_3oy 10-25-2002 02:18 PM

yes i did it NSKL


All times are GMT -5. The time now is 04:58 AM.