/
Run a test executable
Run a test executable
For Mac OS X and Linux, this is a matter of doing this at the command prompt:
./test
We need the ./ to tell the operating system that it’s okay to run a local executable program which is in the local directory.
For windows we do this at the command prompt:
test
This will run test.exe in the local directory. Mac OS X and Linux generally compile executable programs without the .exe file extension.
Generally speaking I tend to use the convention ./test in this website since I use a Macbook for my personal computer.
In all the above examples it’s important to be in the directory the that test program is in.
, multiple selections available,
Related content
Making a Single File C/C++ Sandbox
Making a Single File C/C++ Sandbox
More like this
Invoking External Programs
Invoking External Programs
More like this
GNU make Installation
GNU make Installation
More like this
Mac OS X - Terminal
Mac OS X - Terminal
More like this
Simple make system - putting it all together
Simple make system - putting it all together
More like this
Create a command line tool
Create a command line tool
More like this