Open mikucionisaau opened 2 years ago
Some more similar issues:
examples/ch18/fig18_03.cpp:3:10: fatal error: concurrencpp/concurrencpp.h: No such file or directory
3 | #include <concurrencpp/concurrencpp.h>
examples/ch18/fig18_01.cpp:7:10: fatal error: tl/generator.hpp: No such file or directory
7 | #include <tl/generator.hpp>
examples/ch19/fig19_02.cpp:3:10: fatal error: format: No such file or directory
3 | #include <format>
examples/ch19/fig19_18.cpp:3:10: fatal error: format: No such file or directory
3 | #include <format>
examples/ch19/fig19_20.cpp:3:10: fatal error: format: No such file or directory
3 | #include <format>
examples/ch19/fig19_03.cpp:3:10: fatal error: format: No such file or directory
3 | #include <format>
examples/ch19/fig19_04.cpp:3:10: fatal error: format: No such file or directory
3 | #include <format>
examples/ch19/fig19_21.cpp:3:10: fatal error: format: No such file or directory
3 | #include <format>
examples/ch19/fig19_22.cpp:3:10: fatal error: format: No such file or directory
3 | #include <format>
examples/ch19/fig19_23.cpp:3:10: fatal error: format: No such file or directory
3 | #include <format>
This one assumes that format
is available (which is not yet in GCC), maybe we could use fmt/format.h
instead (as it is already supplied in this repo). I think the best would be to provide a header which would check for that feature using macro and include the appropriate header.
examples/ch15/fig15_20.cpp:19:18: error: no match for ‘operator-’ (operand types are ‘std::_List_const_iterator<int>’ and ‘std::_List_const_iterator<int>’)
19 | return end - begin; // O(1) operation for random-access iterators
I think it would be better to use std::distance(begin, end);
which always works.
@mikucionisaau Thanks for posting. I will check the libraries folder and make sure I post the missing items. As for the ch19
Congratulations with the book! I did not read it, I am looking for one for teaching, hence I am trying to compile blindly. Got stuck with an error:
zip_file.hpp
is not in the repo, where can we get it?I hastily came up with CMake script to compile it (something like this would be nice to have in the repo):
Then used the usual
cmake
dance: