Hi,

´¯¯¯
>2. Following up on windows dllmain  info - which was very useful in itself
>-  but since we use both windows and linux, I checked the equivalent for
>linux as well and yes, luckily, gcc allows you to define a 'function
>attribute' called 'constructor' and 'destructor' which can be used to 
>export
>the functions in your shared lib to  invoke at dlopen and dlclose. So, I
>should be able to use this 'destructor'-attributed function for library
>stuff cleanup on linux - haven't gotten to testing it yet though.
`---

I wasn't sure such a possibility was available on Linux, but it was 
nonetheless probable nowadays.

So if it works more or less similarily, you are just a few #ifdef away 
from a workable solution for both systems.  That's a good news.  Let us 
know how it turns out.  I bet others would love to find an already 
tested solution in some future.



_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to