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]

gcc 3.0 problem on freeBSD 4.4 box


I've just successfully built and installed gcc version 3.01 on a FreeBSD 4.4 box.
I was able to compile and link a simple hello world cc file using the following
command line:

/usr/local/bin/g++ -o hello hello.cc

When I attempt to execute it, I get the following:

/usr/libexec/ld-elf.so.1: Undefined symbol "_ZTVN10__cxxabi117__class_type_infoE" 
referenced from COPY relocation in ./hello.

Running c++filt on the symbol, I get:

vtable for __cxxabiv1::__class_type_info

I then tried to link to libstdc++ explicitly with:

/usr/local/bin/g++ -L/usr/local/lib -lstdc++ -o hello hello.cc

When I attempt to execute this, I get:

/usr/libexec/ld-elf.so.1: Undefined symbol "_ZNSt8numpunctIcE2idE" referenced
from copy reloction in ./hello. c++filt on this returns:

std::numpunct<char, long double>::id

The source code for hello.cc is the following:

#include <iostream>
using std::cout;
using std::endl;

int main(void)
{
        cout << "Hello World" << endl;
        return 0;
}

Can anyone help me ?

Thanks,

Ben Gross


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