[odb-users] visual studio static library

Boris Kolpackov boris at codesynthesis.com
Wed Jun 6 11:08:35 EDT 2018


Matthew Buonomano <matthew.buonomano at familylawsoftware.com> writes:

> I would like to be able to use the odb code as entirely statically compiled
> libraries.

It is not recommended to link ODB libraries statically on Windows because
they rely on DllMain() to perform some low-level initializations. While it
is possible with some extra effort (i.e., you will have to call those
initialization functions yourself), in most cases it is easier to just
ship the .dll files next to your executable.

If you still want to do this, see this earlier thread for some tips:

https://www.codesynthesis.com/pipermail/odb-users/2016-June/003321.html



More information about the odb-users mailing list