This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin 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]

C++ link error: undefined reference to `___gxx_personality_v0`


I just updated cygwin and it updated to gcc 3.2.1.  I now have alinker error.


The default linker is gcc as in:

gcc   ondreprt.o   -o ondreprt
ondreprt.o(.eh_frame+0x11):ondreprt.cpp: undefined reference to `___gxx_personality_v0'
collect2: ld returned 1 exit status
make: *** [ondreprt] Error 1

When compiling C++ you need the default linker to be g++ as in:

$ make
g++   ondreprt.o   -o ondreprt

$


Can the default linker in the make files be changed to g++ by default?

Thanks
KenF


**************************************************************************************

This e-mail and any files transmitted with it are confidential to Salmat Pty Ltd intended solely for the use of the individual or entity to whom they are addressed.  If you have received this e-mail in error please return to the sender and delete from your systems.

This e-mail message has been swept for the presence of computer viruses known to Salmat's virus patterns.

Salmat Pty Ltd	ACN 066 833 458

**************************************************************************************


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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