The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
running a parallel program bankpro High Level Programming 4 01-20-2006 04:20 PM
How to use a .exe with a compiled program. adamsy High Level Programming 1 10-03-2005 09:03 PM
Running a program perleo UNIX for Dummies Questions & Answers 3 08-23-2002 07:34 AM
running a c/c++ program in unix kray High Level Programming 2 07-12-2002 12:25 AM
Running a program automatically jvadn0 Shell Programming and Scripting 3 03-12-2002 12:38 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-07-2001
Registered User
 

Join Date: Sep 2001
Location: Bozeman
Posts: 2
Stumble this Post!
Unhappy Running a compiled Program

Just getting into the Unix command line programming and am unable to run any program I write. I am using a Makefile and the source is compiling but when I enter the name of the output file I get back:

bash: lab01exe.out: command not found

I'm sure I am just dooing something simple incorrectly so I thought I would post a thread to see if I could figure this out without going insane.

Thanks!
Arthur P. Krebsbach
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 09-07-2001
rwb1959's Avatar
Registered User
 

Join Date: Aug 2001
Location: Virginia, USA
Posts: 438
Stumble this Post!
Either the file "lab01exe.out" actually does
not exist or it cannot be found in your path.
Is the file present and executable when you
list the directory contents?

If not, check in your makefile, you should see
some sort of output file name from whatever compiler you are using.

If it is, try typing: ./lab01exe.out

If that works, you should modify your PATH
to include the current directory (hint: ".")
in it.
Reply With Quote
  #3 (permalink)  
Old 09-07-2001
Registered User
 

Join Date: Sep 2001
Location: Bozeman
Posts: 2
Stumble this Post!
That was it

Thanks for the reply. "./" did it.

Arthur P. Krebsbach
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 04:33 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0