Originally Posted by whk
Just a caution - the use of 'test' as a name for the compiled program conflicts with bash.
Also you can use -Wall in g++
as long as you specify the absolute path to your test executable (./test) you should be fine.
i would also agree that -Wall is a good habit to get into