error trying to compile a c++ source file

i tried to compile a c++ file using the g++ command:

g++ <filename>.cpp -out <output_file>

and i received the following error message:

ld.so.1: gcc: fatal: relocation error: file gcc: symbol bindtextdomain: referenced symbol not found
Killed

is it that i am using incorrectly the command?

What kind of system is this?
I have two comments: You need a space between -o and the binay file, like this: -o ut
The file will then be called ut.
Also, cpp is an unusual extension, most often c++ program either have .c++ or .C as extension, whereas C files have .c.

Try to create the file tst.C:
#include <iostream.h>
main
{
cout << "Hello\n";
}

Then compile:

$ g++ tst.C -o tst

Then run
$ ./tst

If there is still no go, you may have a non-standard system.

BTW: CPP is the C PreProcessor, shows you the code after macro expansions,etc.

Atle