Subject: .cpp compile problem with July 15 -current snapshot
To: None <current-users@netbsd.org>
From: Laine Stump <lainestump@speakeasy.net>
List: current-users
Date: 07/21/2004 09:57:33
I just did a full install of the July 15 i386 snapshot from releng. When I
attempt to compile a simple .cpp program, I get the following link error:
/var/tmp//ccMA9oBs.o(.eh_frame+0x11): undefined reference to
`__gxx_personality_v0'
The program can be as simple as this:
#include <stdio.h>
int main()
{
putc('\n');
return 0;
}
The same program links fine if compiled as .c instead of .cpp, and .cpp
also links properly on my 1.6K system.
Is this a known problem? I tried explicitly adding -lstdc++ to the
commandline as a workaround, but that leads to other undefined errors
(stuff from the math library)