i changed "void main()" to "int main()" and
% g++ hello.cpp -o hello
compiled. then,
% ./hello
outputs "hello". '-o' specifies the executable output object. i've never programmed on Windows nor do i have any interest.
remember to always include the "errors" in your messages, otherwise other people must explicitly ask.
|