From owner-freebsd-questions Tue Nov 24 15:07:38 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA19956 for freebsd-questions-outgoing; Tue, 24 Nov 1998 15:07:38 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from kakapo.pinnacle.co.nz (pinsoft.internet.co.nz [202.37.141.181]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA19948 for ; Tue, 24 Nov 1998 15:07:35 -0800 (PST) (envelope-from jonc@pinnacle.co.nz) Received: from kiwi.pinnacle.co.nz (kiwi.pinnacle.co.nz [202.37.163.2]) by kakapo.pinnacle.co.nz (8.8.8/8.8.8) with SMTP id MAA05979; Wed, 25 Nov 1998 12:05:16 +1300 (NZDT) (envelope-from jonc@pinnacle.co.nz) Date: Wed, 25 Nov 1998 12:05:16 +1300 (NZDT) From: Jonathan Chen To: Casper cc: freebsd-questions@FreeBSD.ORG Subject: Re: Static library creation !Need some help In-Reply-To: <365B241F.F904CC60@acc.am> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 25 Nov 1998, Casper wrote: > Can anyone help me with subj ? > I written library , that contains c++ class. It compiled just succesiful > , also all is OK , when i running ar -rcu to create library. > But i troubled to compile some sample program to use this library .. > It not found corresponding symbols in the library /*-constructor, > destructor & etc ..-*/ > But when i linking with object file , containing that class all is OK . BSD requires you to run `ranlib' against the library; having come from a SysV environment myself, I find this requirement very annoying. Cheers. -- Jonathan Chen ---------------------------------------------------------------------- Experience is a hard teacher because she gives the test first, the lesson afterwards To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message