I'm just starting to learn C++, and I've downloaded GCC from Aminet. I've installed everything as it says and if I do a standard "Hello World" program in C and go:
Work:>GCC -o helloc hello.c
Work:>helloc
It runs nicely. Now if i write a C++ program:
#include
int main ()
{
std::cout << "Hello C++!\n";
return 0;
}
And go:
Work:>G++ -o hellocpp hello.cpp
Work:>hellocpp
It cannot find "hellocpp" - the compiler hasn't actually written an executable. If I change the sourcecode a bit:
#include
int main ()
{
std::cout << "Hello C++!\n";
return 0;
}
The compiler compains that it cannot find the header, so I guess it's doing something. If i do something like this though:
#include
inain ()
stdanythjng::cut << "Hello C++!\n" let's not use semicolons
gerbil
}}}}}
It doesn't actually give any errors, so I suspect the C++ compiler (not the preprocessor) is at fault. Any ideas? I'm a C/C++ newbie, and it's running under WinUAE (AIAB)