dynamic library building and loading

Jacob Carlborg doob at me.com
Sat Sep 29 06:19:30 PDT 2012


On 2012-09-28 20:25, Maxim Fomin wrote:

> I tried to check how TLS, EX, etc. (mostly exposed to dll issue) are
> working and here is some kind of test:
> https://github.com/mxfm/sharedtest. Unfortunately scope(exit) isn't
> executed when it is situated in a shared library and which calls some
> throwing function from another shared library. Unittests aren't working
> either. Regarding other parts - they seem to work.

That's a fairly uninteresting test. You are linking to the dynamic 
library. What's interesting is loading a dynamic library using dlopen, 
or similar. What's the point of using dynamic libraries if you're 
linking with them?

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list