![]() |
| | #1 |
| Registered User Join Date: Oct 2009
Posts: 22
| Real basic compile/run question In the past when I compile on Linux I never specified a name of the file, so I would run the program with this command line argument: ./a.out Now when I compile, I am adding "-o myPgm" to the command line argument. How do I run the program now? Again, the OS is Linux. |
| Roger is offline | |
| | #2 |
| subminimalist Join Date: Jul 2008 Location: NYC
Posts: 3,944
| ![]() ./myPgm You need to use ./ to specify an executable in the current working directory. This is to prevent confusion with binaries in the $PATH environment variable.
__________________ Accuracy and integrity mean nothing if you don't make it past the censors...PYTHAGORAS |
| MK27 is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Basic question about GSL ODE func RK4 | cosmich | Game Programming | 1 | 05-07-2007 02:27 AM |
| Basic C question ---- URGENT | x135 | Linux Programming | 3 | 03-25-2006 11:05 PM |
| Visual Basic Question? | ob1cnobe | C++ Programming | 2 | 07-03-2002 09:31 AM |
| A very basic question | AshFooYoung | C Programming | 8 | 10-07-2001 03:37 PM |