Closed kozac closed 3 years ago
Debian 11
[100%] Linking CXX executable tfs
/usr/bin/ld: /tmp/tfs.yOzdg2.ltrans5.ltrans.o: na função "Game::saveAccountStorageValues() const":
<artificial>:(.text+0x91ff7): referência não definida para "fmt::v7::detail::vformat[abi:cxx11](fmt::v7::basic_string_view<char>, fmt::v7::format_args)"
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/tfs.dir/build.make:1358: tfs] Erro 1
make[1]: *** [CMakeFiles/Makefile2:199: CMakeFiles/tfs.dir/all] Erro 2
make: *** [Makefile:103: all] Erro 2
Resolvi inserindo #define FMT_HEADER_ONLY
acima de #include "fmt/format.h"
no game.cpp
Ubuntu 18.04