-
Notifications
You must be signed in to change notification settings - Fork 105
Description
I'm following build and install guide here: Link with you projects.
I'm building my test project using the second suggestion, Jinja2Cpp separately build and install it into system wide /usr/local path.
Test project's CMakeLists.txt is copy & paste from documentation(previous link).
main.cpp includes "jinja2cpp/template.h" and declares a template variable:
jinja2::Template tpl;
Liker complains(and few more but all are about fmtlib::fmt). E.g.:
/usr/bin/ld: /usr/local/lib/static/libjinja2cpp.a(template.cpp.o): in function fmt::v10::detail::error_handler::on_error(char const*)': /.../src/Jinja2Cpp/build/_deps/fmt-src/include/fmt/core.h:655:(.text._ZN3fmt3v106detail13error_handler8on_errorEPKc[_ZN3fmt3v106detail13error_handler8on_errorEPKc]+0x8): undefined reference to fmt::v10::detail::throw_format_error(char const*)'
OS: 6.12.48+deb13-amd64
compiler: gcc 14.2.0 x86_64-linux-gnu(I saw 'supported compilers' in the readme, but still)
Unchanged CMakeLists.txt build configuration with command line: /usr/bin/cmake -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++ --no-warn-unused-cli -S /.../src/Jinja2Cpp -B /.../src/Jinja2Cpp/build -G Ninja
Any suggestion would be appreciated!