undefined symbol: rt_finalize

evilrat evilrat666 at gmail.com
Thu Feb 27 21:46:02 PST 2014


On Friday, 28 February 2014 at 05:41:04 UTC, Tolga Cakiroglu 
wrote:
>>
>> because there is no finalize. rt_init/rt_term is what you need
>>
>> https://github.com/D-Programming-Language/druntime/blob/master/src/core/runtime.d#L30
>
> I looked at the `/usr/include/dmd/druntime` folder with `grep 
> finalize -r`, and it brought me only one file, that is 
> `object.di`.
>
> When I check `object.di`, I see that rt_finalize is defined as 
> `extern(C)` and it is called in `destroy` function. Thereby, it 
> is defined by the DMD itself. So, there is a `finalize`, but 
> even I am not doing anything special in the code, it is not 
> finding it while having it in a normal programme.

that finalize i guess is for finalizing objects. but destroy 
itself is deprecated. use clear() to do this instead.


More information about the Digitalmars-d-learn mailing list