JeffersonLab / rcdb

Run Condition DataBase
3 stars 6 forks source link

fix: `SQLiteCpp.h` include directive and `SQLite::bind` parameter #109

Closed c-dilks closed 1 month ago

c-dilks commented 1 month ago

I was having some trouble building with -DRCDB_SQLITE with Iguana (testing in https://github.com/JeffersonLab/iguana/pull/288). This PR appears to fix the build issues, but I haven't yet had a chance to test it at run-time.

c-dilks commented 1 month ago

Oops.. although this works with g++, it still fails for clang++. I'll try to fix it...

rcdb/cpp/include/RCDB/SQLiteCpp.h:226:10: error: member access into incomplete type 'Statement'
  226 |         s.bind(index, value);
      |          ^
rcdb/cpp/include/RCDB/SQLiteCpp.h:21:7: note: forward declaration of 'Statement'
   21 | class Statement;
      |       ^
1 error generated.