LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-25-2002, 11:07 AM   #1
c00L_3oy
LQ Newbie
 
Registered: Oct 2002
Location: Behind my computer
Posts: 3

Rep: Reputation: 0
Question 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
 
Old 10-25-2002, 11:35 AM   #2
jetblackz
Member
 
Registered: Mar 2002
Location: Debian Galaxy
Distribution: Debian
Posts: 711

Rep: Reputation: 30
gcc filename.c -o filename
g++ filename.cpp -o filename

./filename

Does it compile at all? What do you see?
 
Old 10-25-2002, 02:10 PM   #3
NSKL
Senior Member
 
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Rep: Reputation: 47
Did you setup execute permissions on it?
chmod a+x test
./test
HTH
-NSKL
 
Old 10-25-2002, 02:10 PM   #4
c00L_3oy
LQ Newbie
 
Registered: Oct 2002
Location: Behind my computer
Posts: 3

Original Poster
Rep: Reputation: 0
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....
 
Old 10-25-2002, 02:18 PM   #5
c00L_3oy
LQ Newbie
 
Registered: Oct 2002
Location: Behind my computer
Posts: 3

Original Poster
Rep: Reputation: 0
yes i did it NSKL
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
compile errors. DrunkenDisciple Linux - Software 3 11-29-2005 12:11 AM
c++ compile errors using g++ ttumelty Programming 5 09-08-2005 01:58 PM
compile errors davidleroux1 Programming 4 05-10-2005 10:03 PM
/usr/bin/find :No such file or Directory errors while trying to compile kernel. Zero-0-Effect Linux From Scratch 2 05-29-2004 03:46 PM
Compile Errors userini Linux - Software 6 07-16-2003 08:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration