[odb-users] ODB doesn't generate classes when glibc version >=
2.26
Timo Rothenpieler
timo at rothenpieler.org
Mon Feb 12 10:15:56 EST 2018
Am 12.02.2018 um 12:53 schrieb Роман Лазарев:
> I have glibc 2.26 and ODB doesnt generate classes for working with
> database.
>
> roman at RomanUB:~/Eclipse-Projects/MyPr/src/Model$ odb -d mssql
> --generate-query CallTask.h
> In file included from
> /usr/lib/odb/x86_64-linux-gnu/include/c++/4.9.3/cwchar:44:0,
> from
> /usr/lib/odb/x86_64-linux-gnu/include/c++/4.9.3/bits/postypes.h:40,
> from
> /usr/lib/odb/x86_64-linux-gnu/include/c++/4.9.3/bits/char_traits.h:40,
> from
> /usr/lib/odb/x86_64-linux-gnu/include/c++/4.9.3/string:40,
> from <standard-odb-prologue>:7:
> /usr/lib/odb/x86_64-linux-gnu/lib/gcc/x86_64-linux-gnu/4.9.3/include-fixed/wchar.h:175:22:
> fatal error: xlocale.h: No such file or directory
> # include <xlocale.h>
> ^
> compilation terminated.
>
> Does anyone have a workaround?
>
If I remember the change in glibc correctly, you can just remove/comment
out the include for xlocale.h, and things should work as-is.
Stuff was moved to stdlib.h and xlocale.h was dropped.
Alternatively create an empty xlocale.h somewhere in your include path.
If that causes errors, fill the empty xlocale.h with an include for
stdlib.h, but that should normally already be included elsewhere.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3994 bytes
Desc: S/MIME Cryptographic Signature
Url : https://codesynthesis.com/pipermail/odb-users/attachments/20180212/4c6cb9a7/smime.bin
More information about the odb-users
mailing list