Hello there!
Just a real quick captured couple of commands and output that might help
out, perhaps:
cow:~/c$ cat >> foo.cc
#include <stdio.h>
main()
{
puts("Hello!");
}
(I hit control-D here for EOF)
(Yes, I know it's not C++, but I'm better at C :)
cow:~/c$ g++ foo.cc
(GCC or GNU C++ defaults to creating an excutable, a.out)
cow:~/c$ file a.out
a.out: ELF 32-bit LSB executable, Intel 80386, version 1, dynamically
linked, not stripped
cow:~/c$ ./a.out
Hello!
(See, you can run it)
(If you want to create an object file though...)
cow:~/c$ g++ -c foo.cc
(Use the -c option)
cow:~/c$ file foo.o
foo.o: ELF 32-bit LSB relocatable, Intel 80386, version 1, not stripped
(And of course, if you want to create a file other than a.out, just use
the -o option)
cow:~/c$ g++ foo.cc -o happyhappyjoyjoy
cow:~/c$ ./happyhappyjoyjoy
Hello!
So there you have it. FAR more easy to use than Micro$oft C++ once you
learn the flags. I can't use Micro$oft's development products at all; all
those menus, eeeep!
Anyway, hope this helps, have a nice day. :)
And to the seasoned programmers who are laughing at me and how I write C
and compiled with a C++ compiler here, well, I'm just trying to help out. :)
-Brett