This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: undefined reference problem


Andre Kirchner <supercroc1974@yahoo.com> writes:

> I made this simple C++ program, but when I try to
> compile it, gcc returns the followinf error message:
>
> gcc -c Connector.cpp
> gcc -c main.cpp
> gcc  ./*.o -o main.out
> ./main.o(.eh_frame+0x11): undefined reference to
> `__gxx_personality_v0'
> collect2: ld returned 1 exit status

Link with g++ instead of gcc.

-- 
	Falk


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]