LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 03-31-2002, 01:40 PM   #1
gdc34
LQ Newbie
 
Registered: Mar 2002
Location: London, UK
Distribution: Suse 8.0
Posts: 12

Rep: Reputation: 0
Don't laugh...


Err..before I start, I would like to say that I have just started using Linux (a day or two ago)..

Im trying to learn C++, so im trying to follow this book..
Ive written a 'Hello, World!' program and compiled it as follows:
g++ hello.cpp
this created a file a.out
Im pretty sure that a.out is the executable...but umm..how exactly do I run it?
(pretty embarrassing)

Cheers
Gordon
 
Old 03-31-2002, 01:57 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,536

Rep: Reputation: 148Reputation: 148
./a.out

and you can use
g++ -o prog hello.cpp
and the executalbe will be named prog (so ./prog will start it).
Good luck!
 
Old 03-31-2002, 03:06 PM   #3
gdc34
LQ Newbie
 
Registered: Mar 2002
Location: London, UK
Distribution: Suse 8.0
Posts: 12

Original Poster
Rep: Reputation: 0
Cheers for your help. It is much appreciated.

Gordon
 
Old 03-31-2002, 05:25 PM   #4
zmedico
Member
 
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707

Rep: Reputation: 30
Here are some nice tutorials for c programming on Unix:

http://users.actcom.co.il/~choo/lupg/
 
Old 04-01-2002, 08:33 PM   #5
kwigibo
Member
 
Registered: Apr 2002
Location: Australia
Distribution: Mandrake 8.2
Posts: 53

Rep: Reputation: 15
Here is a site that has a message board almost identical to this one so you should feel right at home. Oh and it has lots of useful stuff too.

www.cprogramming.com

kwigibo
 
Old 04-02-2002, 05:58 AM   #6
gdc34
LQ Newbie
 
Registered: Mar 2002
Location: London, UK
Distribution: Suse 8.0
Posts: 12

Original Poster
Rep: Reputation: 0
Both those sites look really useful

Ta
Gordon
 
  


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
I know I shouldn't laugh, but......... bigjohn General 2 08-06-2005 04:45 AM
I got a good laugh out of this Jmcatch742 General 19 07-25-2005 02:08 AM
please don't laugh... splashdream Linux - Newbie 11 01-22-2004 09:39 PM
Are you bored? Want to have some laugh? neo77777 General 9 12-08-2002 03:16 PM
/evil laugh u02gtt General 0 04-20-2002 09:15 AM


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

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