[odb-users] problem to create library with odb

Lidia Kalinovsky lidia at lemur-soft.com
Tue Jul 2 06:23:28 EDT 2013


thanks a lot.


On Tue, Jul 2, 2013 at 10:32 AM, Boris Kolpackov <boris at codesynthesis.com>wrote:

> Hi Lidia,
>
> Lidia Kalinovsky <lidia at lemur-soft.com> writes:
>
> > 1. Create empty library project and copy all files from some provided
> with
> > odb example ( relationship-sqlite ).
>
> Is it a static or dynamic (DLL) library? I assume you also copied the
> generated files (*-odb.?xx) as is? Is the build for Windows RT?
>
>
> > I get odb::unknown_schema exception from create_database function.
> >
> > If I include all *.cxx files generated by odb compiler to the the calling
> > application project, everything is fine.
>
> The schema registration code uses static initialization which appears
> not to be called in your application. One common case where this happens
> is static libraries. This post explains why it won't work out of the box:
>
> http://www.codesynthesis.com/pipermail/odb-users/2013-May/001286.html
>
> And this followup explains how to make it work with VS:
>
> http://www.codesynthesis.com/pipermail/odb-users/2013-May/001289.html
>
> Boris
>



-- 
Software integration and outsourcing services,
Lemur-Soft, Giv'at Nili
Israel, 37825
Phone : (+972) 545748325
Fax : (+972) 775345383
Email : lidia at lemur-soft.com
Web: www.lemur-soft.com


More information about the odb-users mailing list