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