Running a C++ image on Linux?

Jumpem

Lifer
Sep 21, 2000
10,757
3
81
I'm not that familiar with Linux. I built a small test driver, but can't seem to get it to run. I have the object file and an executable with no extension. Whenever I try to run the executable, driver, it says "driver: Command not found". Any ideas?
 

Matthias99

Diamond Member
Oct 7, 2003
8,808
0
0
What's a "C++ image"? You mean running an executable built for a different platform? Unlikely to work.

If you're talking about a Linux program, though, you should just be able to execute it. From the error you gave, it sounds like it can't find the file. Make sure the path to your executable is included in your $PATH, or try going to the directory it is in and running "./driver".
 

Jumpem

Lifer
Sep 21, 2000
10,757
3
81
Originally posted by: Matthias99
What's a "C++ image"? You mean running an executable built for a different platform? Unlikely to work.

If you're talking about a Linux program, though, you should just be able to execute it. From the error you gave, it sounds like it can't find the file. Make sure the path to your executable is included in your $PATH, or try going to the directory it is in and running "./driver".

That did it. :)

I forgot that you need to put "./" before the filename in Linux.