Re: [linux-audio-dev] linking multiple .o plugins into a single .so library

From: Jesse Chappell <jesse@email-addr-hidden>
Date: Tue Jul 05 2005 - 19:26:12 EEST

Paul Davis wrote on Thu, 30-Jun-2005:

> and if you want to be really portable, don't use _init() or _fini(),
> which are officially deprecated by gcc/glibc/ld.so, and use
>
> void
> myinitfunction() __attributes__((constructor))
> {
>
> }
>
> void
> myfinifunction() __attributes__((destructor))
> {
> }
 
The proper syntax is:

void __attribute__((constructor)) myinitfunction() {}
void __attribute__((destructor)) myfinifunction() {}

jlc
Received on Thu Jul 7 16:18:57 2005

This archive was generated by hypermail 2.1.8 : Thu Jul 07 2005 - 16:18:57 EEST