silverqx / TinyORM

Modern C++ ORM library
https://www.tinyorm.org
MIT License
231 stars 25 forks source link

Compilation Error #12

Closed ahertlcode closed 1 year ago

ahertlcode commented 1 year ago

/home/abayomi/TinyORM/tom/src/tom/commands/migrations/statuscommand.cpp: In lambda function: /home/abayomi/TinyORM/tom/src/tom/commands/migrations/statuscommand.cpp:78:22: error: cannot convert ‘’ to ‘const TableRow&’ {aka ‘const std::vector<std::vector<std::variant<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, const char*, std::basic_string_view<char, std::char_traits >, tabulate::Table> > >&’} 78 | table({"Ran?", "Migration", "Batch"}, migrations); | ~^~~~~~~~~~~~ compilation terminated due to -Wfatal-errors. make[2]: [CMakeFiles/TinyOrm.dir/build.make:1613: CMakeFiles/TinyOrm.dir/tom/src/tom/commands/migrations/statuscommand.cpp.o] Error 1 make[1]: [CMakeFiles/Makefile2:84: CMakeFiles/TinyOrm.dir/all] Error 2 make: *** [Makefile:136: all] Error 2

I run into the error above while compiling TinyORM on my Ubuntu 22.04 machine. I pull the code from the repo with: git clone https://github.com/silverqx/TinyORM.git then i cd into the project directory cd TinyORM then I made and cd into buidl directory mkdir build && cd build I ran the cmake command which was successful i.e. it did not return any error cmake .. After which I then ran the make command make And I got the error above at exactly 85%

silverqx commented 1 year ago

Hi, which version of the tabulate do you have?

ahertlcode commented 1 year ago

tabulate version is 1.5, what version would work perfectly.

silverqx commented 1 year ago

Ok, I see it, I'm going to fix it.

what version would work perfectly.

Use v1.4 or v1.3 for now.

ahertlcode commented 1 year ago

Alright. Thanks

ahertlcode commented 1 year ago

I finally got it to work with tabulate 1.4, version 1.3 did not work, But 1.4 worked perfectly,

silverqx commented 1 year ago

Currently are running CI pipelines, when they finish (~1.5 hour) I will push a new release that will also work with tabulate v1.5.

silverqx commented 1 year ago

For me also the tabulate v1.3 works, if I do git switch v1.3 --detach then it compiles.

ahertlcode commented 1 year ago

Alright

silverqx commented 1 year ago

Done, should work.