LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-19-2007, 09:47 PM   #16
babyswan
LQ Newbie
 
Registered: Jul 2007
Posts: 22

Original Poster
Rep: Reputation: 15

So where do I type in the source codes which i would like to compile? Is it directly at the command shell prompt? I will give it a try though....
will update again!


thank you very much chadl for your help.
Well now at least i know that i have the gcc compiler in the linux computer already. It is a slight progress for me in my project. I could not have done it without your help thankkkks so much once again!
 
Old 07-19-2007, 10:06 PM   #17
babyswan
LQ Newbie
 
Registered: Jul 2007
Posts: 22

Original Poster
Rep: Reputation: 15
Where do i input the codes


#include <stdio.h>
int main()
{
printf("Hello World!\n");
return 0;
}

to test whether my gcc is confirmed working?

How do i create the above file name test.c?
 
Old 07-19-2007, 10:08 PM   #18
babyswan
LQ Newbie
 
Registered: Jul 2007
Posts: 22

Original Poster
Rep: Reputation: 15
How do i create a file name test.c
where do i input the codes

#include <stdio.h>
int main()
{
printf("Hello World!\n");
return 0;
}
 
Old 07-19-2007, 10:14 PM   #19
chadl
Member
 
Registered: Sep 2005
Location: US
Distribution: Gentoo AMD64 Testing
Posts: 129

Rep: Reputation: 16
To make your life easy, just copy and paste the following into a shell:
Code:
echo '#include <stdio.h>
int main()
{
        printf("Hello World\n");
        return 0;
}' > test.c
Then run the folowing (again from the shell):
Code:
gcc test.c -o test
./test
Again, if hello world in printed, then everything is working.

When you are done, get rid of these files by running:
Code:
rm test.c test
 
Old 07-20-2007, 01:19 AM   #20
babyswan
LQ Newbie
 
Registered: Jul 2007
Posts: 22

Original Poster
Rep: Reputation: 15
Thank you very muchhhh! I can now confirm my gcc compiler is working now. I will now proceed to move on with the networking part of the project =) Will need to use the gcc compiler to complile WRT54G linksys source codes....
Thank you so muchhh once again. I feel a lot at ease =)

Thank you chadl and jschiwal =)
 
  


Reply

Tags
gcc, rh9


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GCC compiler help!! LinuxNewbie999 Linux - Newbie 12 11-03-2006 12:03 AM
no gcc, no cc no c compiler pyrether DamnSmallLinux 5 09-09-2006 01:14 AM
How to check ARM Cross-Compiler MKSrivastava Debian 1 02-07-2006 02:39 AM
Passing commands to the compiler with ./cofigure Travis86 Linux - Software 5 10-16-2003 09:01 AM
Check it out: kernel auto-compiler zhenwu Linux - General 2 02-01-2002 03:33 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration