bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: undefined symbol __dso_handle


From: Daniel Jacobowitz
Subject: Re: undefined symbol __dso_handle
Date: Tue, 14 Jan 2003 15:41:44 -0500
User-agent: Mutt/1.5.1i

On Tue, Jan 14, 2003 at 12:22:26PM -0800, H. J. Lu wrote:
> On Tue, Jan 14, 2003 at 05:20:18PM -0300, Alejandro Dobniewski wrote:
> > it's a mix; some sources are C and others C++.
> > 
> 
> It is trivial to initialize something in C++. It is also easy to do
> so in C with gcc attribute.

Alejandro, FYI:  What HJ is talking about is the
__attribute__((constructor)) syntax.  You can find it in the GCC
manual.  In C++ you can just declare a static object and its
constructor will be called properly.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer




reply via email to

[Prev in Thread] Current Thread [Next in Thread]