LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 06-26-2002, 08:14 AM   #1
rao
LQ Newbie
 
Registered: Jun 2002
Location: Malaysia
Posts: 14

Rep: Reputation: 0
C and C++ programming


How to compile and run C and C++ program on Linux
 
Old 06-26-2002, 08:28 AM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
man gcc
will give you all the info you need.
 
Old 06-28-2002, 07:14 AM   #3
rao
LQ Newbie
 
Registered: Jun 2002
Location: Malaysia
Posts: 14

Original Poster
Rep: Reputation: 0
Dear neo77777,
Thankx, but problem is how to run a.out ?
 
Old 06-28-2002, 08:26 AM   #4
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
./a.out
 
Old 06-28-2002, 10:36 AM   #5
mace
Member
 
Registered: Apr 2002
Distribution: redhat7, 7.1, 7.2, 8.0, mandrake, debian2.2, 3, suse
Posts: 176

Rep: Reputation: 30
vi beer.c
*press letter "i" to start inserting text. then start typing*

/* blah */
main()
{
printf ("gimmi another beer bitch");
}

*after you type this example hit the 'esc' key then ':wq' to save*

*you should be back at the prompt now*

type:
gcc beer.c
./a.out
 
Old 06-28-2002, 04:34 PM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
But why in vi? It's the best method to scare a new Linux (Unix) user...
 
Old 06-28-2002, 05:52 PM   #7
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Yeah, why vi? why not ed? Let's not start the best editor flame war here. It doesn't matter as long as the opponent understood the idea behind.
 
Old 06-29-2002, 12:34 PM   #8
mace
Member
 
Registered: Apr 2002
Distribution: redhat7, 7.1, 7.2, 8.0, mandrake, debian2.2, 3, suse
Posts: 176

Rep: Reputation: 30
sorry - it's what i use. so it was easy to type in a hurry. gedit is great also. ae on debian is good - as is pico.
 
Old 06-29-2002, 01:12 PM   #9
tundra
Member
 
Registered: Jun 2002
Location: Koom Valley
Distribution: rh8
Posts: 528

Rep: Reputation: 31
hey hey, i like vi... don't go knocking it
 
Old 06-30-2002, 12:46 PM   #10
Brion
Member
 
Registered: May 2002
Location: Belgium
Distribution: LinuxFromScratch
Posts: 85

Rep: Reputation: 15
u should give Kdevelop a try. it's a great development environment for C and C++ programs. it basically does everything except the programming for u
 
Old 07-01-2002, 06:35 AM   #11
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Kdevelop is nice. Especially for peple used to VIsual * environments.
 
  


Reply



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
which programming language is used to do tcp/ip programming?? gajaykrishnan Linux - Networking 9 12-21-2012 05:16 AM
im new to programming but..... boxerboy Programming 6 08-26-2005 06:17 AM
Difference between Top Down programming & Bottom up programming minil Programming 1 06-17-2005 02:42 AM
C programming oranj Linux - Networking 1 12-07-2004 12:40 AM
Qt Programming... jinksys Programming 1 08-06-2003 04:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:55 PM.

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