LinuxQuestions.org
Help answer threads with 0 replies.
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, 09: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, 09: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, 08: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, 09: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, 11: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, 05:34 PM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,575

Rep: Reputation: 181Reputation: 181
But why in vi? It's the best method to scare a new Linux (Unix) user...
 
Old 06-28-2002, 06: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, 01: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, 02: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, 01: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, 07:35 AM   #11
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,575

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


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 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 06:16 AM
im new to programming but..... boxerboy Programming 6 08-26-2005 07:17 AM
Difference between Top Down programming & Bottom up programming minil Programming 1 06-17-2005 03:42 AM
C programming oranj Linux - Networking 1 12-07-2004 01:40 AM
Qt Programming... jinksys Programming 1 08-06-2003 05:33 AM

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

All times are GMT -5. The time now is 06:03 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration