[odb-users] ODB 2.5.0 compiler error

Boris Kolpackov boris at codesynthesis.com
Wed Apr 16 05:38:17 EDT 2025


Paul Stath <PStath at jmawireless.com> writes:

> I have compiled the build2 toolchain and also:
> * odb
> * libodb
> * libodb-sqlite
> * libodb-boost

FYI, we provide rpm packages for RHEL 9 (and 8):

https://www.codesynthesis.com/products/odb/download.xhtml

(Though there is nothing wrong with building them from source.)


> It looks like the positioned pragmas are not being matched up
> with the data member variables.

I've tried it on a basic test like this:

#include <odb/core.hxx>

PRAGMA_DB(object)
class person
{
public:
  PRAGMA_DB(id auto)
  unsigned long long id_;
};

But it works fine for me, though with GCC 14, not 11. Could you
provide a minimal but complete reproducer for this?



More information about the odb-users mailing list