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.