On Mon, 2009-06-22 at 08:01 -0700, nitesh wrote:
> Hi,
> 
> I am getting following error when i typed "gcc test.cpp" on my terminal.
> 
> Undefined                     first referenced
>  symbol                           in file
> __gxx_personality_v0                /var/tmp//ccMCa4Bb.o
> ld: fatal: Symbol referencing errors. No output written to a.out
> collect2: ld returned 1 exit status
> 
> 
> its a test program printing hello. I am pasting it for reference.
> 
> #include <stdio.h>
> 
> int main()
> {
> printf ("Hello");
> return 0;
> }
> 
> Please help me to resolve..
You *need* to use the c++ compiler (use g++) instead of gcc.

Or rename your file to test.c




Reply via email to