From owner-freebsd-questions Fri Sep 21 5:22:20 2001 Delivered-To: freebsd-questions@freebsd.org Received: from cn.com (207-237-233-167.c3-0.nyr-ubr2.nyr.ny.cable.rcn.com [207.237.233.167]) by hub.freebsd.org (Postfix) with ESMTP id 03F4537B40C for ; Fri, 21 Sep 2001 05:22:16 -0700 (PDT) Received: (from bgross@localhost) by cn.com (8.11.6/8.11.6) id f8LCMtm26824 for freebsd-questions@FreeBSD.ORG; Fri, 21 Sep 2001 08:22:55 -0400 (EDT) (envelope-from bgross) Date: Fri, 21 Sep 2001 08:22:55 -0400 From: Benjamin Gross To: freebsd-questions@FreeBSD.ORG Subject: freeBSD 4.3 and gcc 3.0 problem Message-ID: <20010921082255.A26792@rcn.com> References: <9789D0547425784DA2D4902F829AD29202DA8D@austin1.terracon.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <9789D0547425784DA2D4902F829AD29202DA8D@austin1.terracon.com>; from sescobar@hbcengineering.com on Wed, Sep 19, 2001 at 08:52:01AM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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::id The hello program source is the following: #include 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