Subject: Re: .cpp compile problem with July 15 -current snapshot
To: Laine Stump <firstname.lastname@example.org>
From: James Chacon <jmc@NetBSD.org>
Date: 07/21/2004 12:10:12
On Wed, Jul 21, 2004 at 09:57:33AM -0400, Laine Stump wrote:
> 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
How are you compiling the program? i.e. using g++ ?
Also, add -v to the args and send that back also.
> The program can be as simple as this:
> #include <stdio.h>
> int main()
> 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)