Date: Fri, 21 Sep 2001 08:22:55 -0400 From: Benjamin Gross <bgross1@rcn.com> To: freebsd-questions@FreeBSD.ORG Subject: freeBSD 4.3 and gcc 3.0 problem Message-ID: <20010921082255.A26792@rcn.com> In-Reply-To: <9789D0547425784DA2D4902F829AD29202DA8D@austin1.terracon.com>; from sescobar@hbcengineering.com on Wed, Sep 19, 2001 at 08:52:01AM -0500 References: <9789D0547425784DA2D4902F829AD29202DA8D@austin1.terracon.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Has anyone successfully compiled and executed a c++ program using g++ version 3.0 ? I just successfully built and installed gcc version 3.0 on a FreeBSD 4.3 pc. A created a "hello world" c++ program and successfully compiled and linked using: /usr/local/bin/g++ -o hello hello.cc (gcc version 3.0 was install in /usr/local/bin) When I try to execute the hello program I get: /usr/libexec/ld-elf.so.1: Undefined symbol "_ZTVN10__cxxabiv117__class_type_infoE" referenced from COPY relocation in .hello c++filt unmangles the name to: vtable for __cxxabi1::__class_type_info I then tried to link explicitly to the C++ libraries via: /usr/local/bin/g++ -L/usr/local/lib -lstdc++ -o hello hello.cc When I try to execute this I get: /usr/libexec/ld-elf.so.1: Undefined symbol "_ZNSt8numpunctIcE2idE" referenced from COPY relocation in ./hello This unmangles to: std::numpunct<char>::id The hello program source is the following: #include <iostream> using std::cout; using std::endl; int main(void) { cout << "Hello World" << endl; return 0; } Any ideas ?? -Ben To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010921082255.A26792>