From owner-freebsd-hackers Fri Mar 29 23:49:25 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mailout06.sul.t-online.com (mailout06.sul.t-online.com [194.25.134.19]) by hub.freebsd.org (Postfix) with ESMTP id 5D23E37B416 for ; Fri, 29 Mar 2002 23:49:20 -0800 (PST) Received: from fwd00.sul.t-online.de by mailout06.sul.t-online.com with smtp id 16rD4T-0005ZJ-01; Sat, 30 Mar 2002 08:14:41 +0100 Received: from spirit.zuhause.stoert.net (320050403952-0001@[217.82.55.8]) by fmrl00.sul.t-online.com with esmtp id 16rD4E-0tbjCSC; Sat, 30 Mar 2002 08:14:26 +0100 Received: from elevation.zuhause.stoert.net (elevation.zuhause.stoert.net [192.168.66.46]) by spirit.zuhause.stoert.net (8.11.6/8.11.6) with ESMTP id g2U7EPR58368 for ; Sat, 30 Mar 2002 08:14:25 +0100 (CET) (envelope-from corecode@corecode.ath.cx) Received: (from corecode@localhost) by elevation.zuhause.stoert.net (8.11.6/8.11.6) id g2U7EHo12216; Sat, 30 Mar 2002 08:14:17 +0100 (CET) (envelope-from corecode) Date: Sat, 30 Mar 2002 08:14:10 +0100 From: "Simon 'corecode' Schubert" To: hackers@freebsd.org Subject: bsd.prog.mk doesn't link c++ programs correctly? Message-Id: <20020330081410.5af6f2da.corecode@corecode.ath.cx> X-Mailer: Sylpheed version 0.7.4claws (GTK+ 1.2.10; i386-portbld-freebsd4.5) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; boundary="=.6w+MHe:WA?INYG" X-Sender: 320050403952-0001@t-dialin.net Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --=.6w+MHe:WA?INYG Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit hi hackers! i'm in progress in writing a c++ program utilizing bsd.prog.mk i wondered why my programs won't link correctly when i don't add a line LDFLAGS=-lstdc++ no i was trying out gcc30 (whoa, slow!) and it didn't want to link with or without the above line. it seems c++ programs need to be linked via g++ (or c++). after delting the above line and inserting a CC=${CXX} everything works fine, but that's not nice, of course. is there any specific reason why linking is done with ${CC}? there should be a way to tell that one needs ${CXX} for linkage. cheerz simon -- /"\ http://corecode.ath.cx/ \ / \ ASCII Ribbon Campaign / \ Against HTML Mail and News --=.6w+MHe:WA?INYG Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) iD8DBQE8pWXIr5S+dk6z85oRAkcHAJ4x3jwzTLgo9L3v6hQWUN8DVrgB9QCfbf4X 8k9tD1XV+7q/r3qBAkvQccY= =vpeu -----END PGP SIGNATURE----- --=.6w+MHe:WA?INYG-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message