[odb-users] simple app

dd durga.disc at gmail.com
Wed Aug 28 02:00:10 EDT 2013


I am able to compile sqlite library successfully now.

It's Ubuntu. predefs.h exists in /usr/include/x86_64-linux-gnu directory.
Should I add this include directory to odb-examples?


On Tue, Aug 27, 2013 at 6:25 PM, Boris Kolpackov <boris at codesynthesis.com>wrote:

> Hi,
>
> dd <durga.disc at gmail.com> writes:
>
> > user at username:~/ODB/tests/howtouse1$ odb -d sqlite --generate-query
> person.h
> > In file included from
> >
> /usr/lib/odb/i686-linux-gnu/bin/../lib/gcc/i686-linux-gnu/4.7.3/../../../../include/c++/4.7.3/i686-linux-gnu/bits/os_defines.h:40:0,
> >                  from
> >
> /usr/lib/odb/i686-linux-gnu/bin/../lib/gcc/i686-linux-gnu/4.7.3/../../../../include/c++/4.7.3/i686-linux-gnu/bits/c++config.h:414,
> >                  from
> >
> /usr/lib/odb/i686-linux-gnu/bin/../lib/gcc/i686-linux-gnu/4.7.3/../../../../include/c++/4.7.3/string:40,
> >                  from <standard-odb-prologue>:7:
> > /usr/include/features.h:324:26: fatal error: bits/predefs.h: No such file
> > or directory
>
> This is actually a problem with the pre-built ODB compiler binary
> and your OS. What are you using, Debian or Ubuntu and which version?
>
> Also, do you have either of these two directories:
>
> /usr/include/x86_64-linux-gnu
> /usr/include/i386-linux-gnu
>
> And is the bits/predefs.h in there? You can run these commands
> to find out:
>
> ls /usr/include/x86_64-linux-gnu
> ls /usr/include/x86_64-linux-gnu/bits/predefs.h
>
> ls /usr/include/i386-linux-gnu
> ls /usr/include/i386-linux-gnu/bits/predefs.h
>
> Boris
>


More information about the odb-users mailing list