Date: Fri, 19 Jun 1998 03:52:36 +0400 From: =?koi8-r?B?4c7E0sXKIP7F0s7P1w==?= <ache@nagual.pp.ru> To: current@FreeBSD.ORG Subject: Re: How to handle (multiply defined) symbols properly? Message-ID: <19980619035236.A16953@nagual.pp.ru> In-Reply-To: <19980618163540.A19073@nagual.pp.ru>; from ache@nagual.pp.ru on Thu, Jun 18, 1998 at 04:35:40PM %2B0400 References: <19980618163540.A19073@nagual.pp.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jun 18, 1998 at 04:35:40PM +0400, Андрей Чернов wrote: > I need some functions in libncurses replace some functions in libmytinfo > when they linked together like -lncurses -lmytinfo, but I got > > Definition of symbol `_reset_shell_mode' (multiply defined) > > diagnostics for -static. How to handle it properly? As I found so far, 'weak' may helps for this case. Is it enough to do: #pragma weak reset_shell_mode int reset_shell_mode() in libmytinfo code? -- Andrey A. Chernov http://www.nagual.pp.ru/~ache/ MTH/SH/HE S-- W-- N+ PEC>+ D A a++ C G>+ QH+(++) 666+>++ Y To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980619035236.A16953>