Subject: .cpp compile problem with July 15 -current snapshot
To: None <>
From: Laine Stump <>
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 

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)