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: Alejandro Dobniewski
Subject: RE: undefined symbol __dso_handle
Date: Tue, 14 Jan 2003 18:57:13 -0300

I'll check it. Anyway is not a problem to initialize something. Without the
-nostartfiles the __dso_handle problem seems to disappear. My only question
is why doesn't happen with the older gcc/ld.
A lot of thanks to all!
Alejandro


-----Mensaje original-----
De: Daniel Jacobowitz [mailto:address@hidden
Enviado el: Martes, 14 de Enero de 2003 17:42
Para: H. J. Lu
CC: Alejandro Dobniewski; 'address@hidden'
Asunto: Re: undefined symbol __dso_handle


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]