From Morten.Sandgrav at esf.se Sun Aug 16 11:25:42 2026 From: Morten.Sandgrav at esf.se (Sandgrav Morten) Date: Mon Aug 17 05:30:03 2026 Subject: [odb-users] Error when trying to compile with odb Message-ID: Hi, I have started to look at odb, but when I tried to compile the first example in the manual, person.hxx, I got an error: odb -d mysql --generate-query person.hxx cc1plus: error: cannot load plugin /usr/bin/odb.so: /usr/bin/odb.so: undefined symbol: tree_code_type I am working on docker, so I have attached the dockerfile and as I said, the file I am trying to compile is person.hxx: // person.hxx // #include #include // (1) #pragma db object // (2) class person { private: person () {} // (3) friend class odb::access; // (4) #pragma db id auto // (5) unsigned long long id_; // (5) std::string first_; std::string last_; unsigned short age_; }; What am I doing wrong? Morten Sandgrav -------------- next part -------------- A non-text attachment was scrubbed... Name: Dockerfile.ebsc Type: application/octet-stream Size: 2354 bytes Desc: Dockerfile.ebsc Url : https://codesynthesis.com/pipermail/odb-users/attachments/20260816/69f8db73/Dockerfile.obj From boris at codesynthesis.com Tue Aug 18 10:27:43 2026 From: boris at codesynthesis.com (Boris Kolpackov) Date: Tue Aug 18 10:27:58 2026 Subject: [odb-users] Error when trying to compile with odb In-Reply-To: References: Message-ID: Sandgrav Morten writes: > cc1plus: error: cannot load plugin /usr/bin/odb.so: /usr/bin/odb.so: > undefined symbol: tree_code_type This would indicate that your version of GCC does not match the ODB plugin build. What OS are you on and how did you install ODB? From Morten.Sandgrav at esf.se Wed Aug 19 02:27:43 2026 From: Morten.Sandgrav at esf.se (Sandgrav Morten) Date: Wed Aug 19 06:37:11 2026 Subject: Sv: [odb-users] Error when trying to compile with odb In-Reply-To: References: Message-ID: <9886f081713d4d19b3844220ce616980@esf.se> I fixed the problem by moving from ubuntu 20.04 and ODB 2.5 to Ubuntu 24.04 and ODB 2.6, I use gcc version 13 on both. Morten -----Ursprungligt meddelande----- Fr?n: Boris Kolpackov Skickat: den 18 augusti 2026 16:28 Till: Sandgrav Morten Kopia: odb-users@codesynthesis.com ?mne: Re: [odb-users] Error when trying to compile with odb Sandgrav Morten writes: > cc1plus: error: cannot load plugin /usr/bin/odb.so: /usr/bin/odb.so: > undefined symbol: tree_code_type This would indicate that your version of GCC does not match the ODB plugin build. What OS are you on and how did you install ODB?