GIDForums  

Go Back   GIDForums > Computer Programming Forums > CPP / C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 06-Sep-2005, 07:08
cBee cBee is offline
New Member
 
Join Date: Sep 2005
Posts: 2
cBee is on a distinguished road

newbie: running prog


Hi

In my book it says "type the name of the prog by command line"
I compiled my prog Got an a.out but I get "command not found"

Why is that?
Thanks..
//Ylva
  #2  
Old 06-Sep-2005, 07:53
LuciWiz's Avatar
LuciWiz LuciWiz is offline
Moderator
 
Join Date: Jul 2004
Location: Cluj-Napoca (Romania)
Posts: 889
LuciWiz is a jewel in the roughLuciWiz is a jewel in the roughLuciWiz is a jewel in the roughLuciWiz is a jewel in the rough
Quote:
Originally Posted by cBee
Hi

In my book it says "type the name of the prog by command line"
I compiled my prog Got an a.out but I get "command not found"

Why is that?
Thanks..
//Ylva

If your prompt points to the path where your executable is (a.out), try this:

Code:
>./a.out

Otherwise, type the path to your executable in the terminal followed by (ending with) the executable name.

Regards,
Lucian
__________________
Please read these Guidelines before posting on the forum

"A person who never made a mistake never tried anything new."
Einstein
 
 

Recent GIDBlogLast Week of IA Training by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
D3D error when running fullscreen games/programs - help?! daa709 Computer Hardware Forum 4 01-Jul-2005 08:03
show running icon oshiotse MS Visual C++ / MFC Forum 1 10-Jun-2004 20:10
linked lists, newbie needs help moltarim C Programming Language 4 06-May-2004 11:32
newbie using Sam's series Skampy CPP / C++ Forum 3 06-Mar-2004 18:51

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 01:06.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.