[gambit-list] Help building shared lib

Alex Queiroz asandroq at gmail.com
Sun Sep 19 22:44:36 EDT 2010


Hallo,

On Sun, Sep 19, 2010 at 11:38 PM, Evan Hanson <vnhnsn at gmail.com> wrote:
> Yes, I have produced working executables that way. I was hoping there might
> be a way to produce a library that exports the defined functions without
> requiring the setup calls. I take it this isn't possible, or I'm using the
> wrong approach to achieve what I want...
>

    You may use GCC's "constructor" and "destructor" function attributes:

http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html

In Windows the setup would be done in DllMain().

-- 
-alex
http://www.artisancoder.com/



More information about the Gambit-list mailing list