moviebr / baiakthunder

Baiak Thunder - 8.60 (TFS 1.3) for OpenTibia community.
GNU General Public License v2.0
15 stars 20 forks source link

Erro compiling ubuntu 18.04 #24

Closed kozac closed 3 years ago

kozac commented 3 years ago
[  1%] Linking CXX executable tfs
/tmp/ccDJVr9L.ltrans20.ltrans.o: In function `fmt::BasicFormatter<char, fmt::ArgFormatter<char> >::get_arg(fmt::BasicStringRef<char>, char const*&)':
<artificial>:(.text+0x1141): undefined reference to `fmt::internal::ArgMap<char>::init(fmt::ArgList const&)'
/tmp/ccDJVr9L.ltrans20.ltrans.o: In function `unsigned int fmt::internal::parse_nonnegative_int<char>(char const*&)':
<artificial>:(.text+0x12ce): undefined reference to `fmt::FormatError::~FormatError()'
<artificial>:(.text+0x12d8): undefined reference to `typeinfo for fmt::FormatError'
/tmp/ccDJVr9L.ltrans20.ltrans.o: In function `void fmt::internal::check_sign<char>(char const*&, fmt::internal::Arg const&)':
<artificial>:(.text+0x13e0): undefined reference to `fmt::FormatError::~FormatError()'
<artificial>:(.text+0x13ea): undefined reference to `typeinfo for fmt::FormatError'
/tmp/ccDJVr9L.ltrans20.ltrans.o: In function `fmt::internal::ArgFormatterBase<fmt::ArgFormatter<char>, char, fmt::FormatSpec>::visit_char(int)':
<artificial>:(.text+0x85b2): undefined reference to `fmt::FormatError::~FormatError()'
<artificial>:(.text+0x85bc): undefined reference to `typeinfo for fmt::FormatError'
/tmp/ccDJVr9L.ltrans20.ltrans.o: In function `fmt::internal::ArgFormatterBase<fmt::ArgFormatter<char>, char, fmt::FormatSpec>::visit_pointer(void const*)':
<artificial>:(.text+0x887d): undefined reference to `fmt::internal::report_unknown_type(char, char const*)'
/tmp/ccDJVr9L.ltrans20.ltrans.o: In function `void fmt::BasicWriter<char>::write_int<int, fmt::FormatSpec>(int, fmt::FormatSpec)':
<artificial>:(.text+0xdb12): undefined reference to `fmt::internal::report_unknown_type(char, char const*)'
/tmp/ccDJVr9L.ltrans20.ltrans.o: In function `void fmt::BasicWriter<char>::write_str<char, fmt::FormatSpec>(fmt::internal::Value::StringValue<char> const&, fmt::FormatSpec const&)':
<artificial>:(.text+0xde57): undefined reference to `fmt::internal::report_unknown_type(char, char const*)'
<artificial>:(.text+0xdeb2): undefined reference to `fmt::FormatError::~FormatError()'
<artificial>:(.text+0xdebc): undefined reference to `typeinfo for fmt::FormatError'
/tmp/ccDJVr9L.ltrans20.ltrans.o: In function `void fmt::BasicWriter<char>::write_int<unsigned int, fmt::FormatSpec>(unsigned int, fmt::FormatSpec)':
<artificial>:(.text+0x11526): undefined reference to `fmt::internal::report_unknown_type(char, char const*)'
/tmp/ccDJVr9L.ltrans20.ltrans.o: In function `void fmt::BasicWriter<char>::write_int<long long, fmt::FormatSpec>(long long, fmt::FormatSpec)':
<artificial>:(.text+0x11ae5): undefined reference to `fmt::internal::report_unknown_type(char, char const*)'
/tmp/ccDJVr9L.ltrans20.ltrans.o: In function `void fmt::BasicWriter<char>::write_int<unsigned long long, fmt::FormatSpec>(unsigned long long, fmt::FormatSpec)':
<artificial>:(.text+0x120a5): undefined reference to `fmt::internal::report_unknown_type(char, char const*)'
/tmp/ccDJVr9L.ltrans20.ltrans.o: In function `void fmt::BasicWriter<char>::write_int<bool, fmt::FormatSpec>(bool, fmt::FormatSpec)':
<artificial>:(.text+0x1264c): undefined reference to `fmt::internal::report_unknown_type(char, char const*)'
/tmp/ccDJVr9L.ltrans20.ltrans.o: In function `void fmt::internal::format_decimal<unsigned int, char, fmt::internal::ThousandsSep>(char*, unsigned int, unsigned int, fmt::internal::ThousandsSep)':
<artificial>:(.text+0x12b2b): undefined reference to `fmt::internal::BasicData<void>::DIGITS'
<artificial>:(.text+0x12b5b): undefined reference to `fmt::internal::BasicData<void>::DIGITS'
<artificial>:(.text+0x12bbd): undefined reference to `fmt::internal::BasicData<void>::DIGITS'
<artificial>:(.text+0x12bed): undefined reference to `fmt::internal::BasicData<void>::DIGITS'
/tmp/ccDJVr9L.ltrans20.ltrans.o: In function `void fmt::BasicWriter<char>::write_double<double, fmt::FormatSpec>(double, fmt::FormatSpec const&)':
<artificial>:(.text+0x12d3e): undefined reference to `fmt::internal::report_unknown_type(char, char const*)'
<artificial>:(.text+0x1315f): undefined reference to `int fmt::internal::CharTraits<char>::format_float<double>(char*, unsigned long, char const*, unsigned int, int, double)'
/tmp/ccDJVr9L.ltrans20.ltrans.o: In function `void fmt::BasicWriter<char>::write_double<long double, fmt::FormatSpec>(long double, fmt::FormatSpec const&)':
<artificial>:(.text+0x134b8): undefined reference to `fmt::internal::report_unknown_type(char, char const*)'
<artificial>:(.text+0x1388e): undefined reference to `int fmt::internal::CharTraits<char>::format_float<long double>(char*, unsigned long, char const*, unsigned int, int, long double)'
/tmp/ccDJVr9L.ltrans20.ltrans.o: In function `void fmt::BasicWriter<char>::write_int<unsigned long, fmt::FormatSpec>(unsigned long, fmt::FormatSpec)':
<artificial>:(.text+0x140ef): undefined reference to `fmt::internal::report_unknown_type(char, char const*)'
/tmp/ccDJVr9L.ltrans20.ltrans.o: In function `void fmt::internal::format_decimal<unsigned long, char, fmt::internal::ThousandsSep>(char*, unsigned long, unsigned int, fmt::internal::ThousandsSep)':
<artificial>:(.text+0x159c9): undefined reference to `fmt::internal::BasicData<void>::DIGITS'
<artificial>:(.text+0x159f9): undefined reference to `fmt::internal::BasicData<void>::DIGITS'
<artificial>:(.text+0x15a5e): undefined reference to `fmt::internal::BasicData<void>::DIGITS'
<artificial>:(.text+0x15a8e): undefined reference to `fmt::internal::BasicData<void>::DIGITS'
/tmp/ccDJVr9L.ltrans20.ltrans.o: In function `void fmt::internal::format_decimal<unsigned int, char, fmt::internal::NoThousandsSep>(char*, unsigned int, unsigned int, fmt::internal::NoThousandsSep)':
<artificial>:(.text+0x15f1f): undefined reference to `fmt::internal::BasicData<void>::DIGITS'
/tmp/ccDJVr9L.ltrans20.ltrans.o:<artificial>:(.text+0x15f48): more undefined references to `fmt::internal::BasicData<void>::DIGITS' follow
/tmp/ccDJVr9L.ltrans21.ltrans.o: In function `fmt::BasicFormatter<char, fmt::ArgFormatter<char> >::format(fmt::BasicCStringRef<char>)':
<artificial>:(.text+0xb8b9): undefined reference to `fmt::FormatError::~FormatError()'
<artificial>:(.text+0xb8c3): undefined reference to `typeinfo for fmt::FormatError'
/tmp/ccDJVr9L.ltrans21.ltrans.o: In function `fmt::BasicFormatter<char, fmt::ArgFormatter<char> >::parse_arg_name(char const*&)':
<artificial>:(.text+0x11cfd): undefined reference to `fmt::FormatError::~FormatError()'
<artificial>:(.text+0x11d07): undefined reference to `typeinfo for fmt::FormatError'
/tmp/ccDJVr9L.ltrans21.ltrans.o: In function `fmt::BasicFormatter<char, fmt::ArgFormatter<char> >::parse_arg_index(char const*&)':
<artificial>:(.text+0x11e3d): undefined reference to `fmt::FormatError::~FormatError()'
<artificial>:(.text+0x11e47): undefined reference to `typeinfo for fmt::FormatError'
/tmp/ccDJVr9L.ltrans21.ltrans.o: In function `fmt::BasicFormatter<char, fmt::ArgFormatter<char> >::format(char const*&, fmt::internal::Arg const&)':
<artificial>:(.text+0x12036): undefined reference to `fmt::FormatError::~FormatError()'
<artificial>:(.text+0x12040): undefined reference to `typeinfo for fmt::FormatError'
<artificial>:(.text+0x122c6): undefined reference to `fmt::FormatError::~FormatError()'
<artificial>:(.text+0x122d0): undefined reference to `typeinfo for fmt::FormatError'
<artificial>:(.text+0x12358): undefined reference to `fmt::FormatError::~FormatError()'
<artificial>:(.text+0x12362): undefined reference to `typeinfo for fmt::FormatError'
<artificial>:(.text+0x123d1): undefined reference to `fmt::FormatError::~FormatError()'
<artificial>:(.text+0x123db): undefined reference to `typeinfo for fmt::FormatError'
<artificial>:(.text+0x12439): undefined reference to `fmt::FormatError::~FormatError()'
<artificial>:(.text+0x12443): undefined reference to `typeinfo for fmt::FormatError'
<artificial>:(.text+0x1249c): undefined reference to `fmt::FormatError::~FormatError()'
<artificial>:(.text+0x124a6): undefined reference to `typeinfo for fmt::FormatError'
<artificial>:(.text+0x125e8): undefined reference to `fmt::FormatError::~FormatError()'
<artificial>:(.text+0x125f2): undefined reference to `typeinfo for fmt::FormatError'
<artificial>:(.text+0x1267a): undefined reference to `fmt::FormatError::~FormatError()'
<artificial>:(.text+0x12684): undefined reference to `typeinfo for fmt::FormatError'
<artificial>:(.text+0x126f3): undefined reference to `fmt::FormatError::~FormatError()'
<artificial>:(.text+0x126fd): undefined reference to `typeinfo for fmt::FormatError'
<artificial>:(.text+0x1275b): undefined reference to `fmt::FormatError::~FormatError()'
<artificial>:(.text+0x12765): undefined reference to `typeinfo for fmt::FormatError'
<artificial>:(.text+0x127be): undefined reference to `fmt::FormatError::~FormatError()'
<artificial>:(.text+0x127c8): undefined reference to `typeinfo for fmt::FormatError'
<artificial>:(.text+0x12812): undefined reference to `fmt::FormatError::~FormatError()'
<artificial>:(.text+0x1281c): undefined reference to `typeinfo for fmt::FormatError'
<artificial>:(.text+0x128d6): undefined reference to `fmt::FormatError::~FormatError()'
<artificial>:(.text+0x128e0): undefined reference to `typeinfo for fmt::FormatError'
<artificial>:(.text+0x12970): undefined reference to `fmt::FormatError::~FormatError()'
<artificial>:(.text+0x1297a): undefined reference to `typeinfo for fmt::FormatError'
/tmp/ccDJVr9L.ltrans22.ltrans.o: In function `fmt::FormatError::FormatError(fmt::BasicCStringRef<char>) [clone .lto_priv.11954]':
<artificial>:(.text+0x52c5): undefined reference to `vtable for fmt::FormatError'
/tmp/ccDJVr9L.ltrans22.ltrans.o: In function `fmt::internal::count_digits(unsigned long)':
<artificial>:(.text+0x5333): undefined reference to `fmt::internal::BasicData<void>::POWERS_OF_10_64'
/tmp/ccDJVr9L.ltrans22.ltrans.o: In function `fmt::internal::count_digits(unsigned int)':
<artificial>:(.text+0x5396): undefined reference to `fmt::internal::BasicData<void>::POWERS_OF_10_32'
/tmp/ccDJVr9L.ltrans22.ltrans.o: In function `fmt::internal::FormatterBase::next_arg(char const*&)':
<artificial>:(.text+0x5617): undefined reference to `fmt::internal::FormatterBase::do_get_arg(unsigned int, char const*&)'
/tmp/ccDJVr9L.ltrans22.ltrans.o: In function `fmt::internal::FormatterBase::get_arg(unsigned int, char const*&)':
<artificial>:(.text+0x56b8): undefined reference to `fmt::internal::FormatterBase::do_get_arg(unsigned int, char const*&)'
/tmp/ccDJVr9L.ltrans22.ltrans.o: In function `fmt::internal::require_numeric_argument(fmt::internal::Arg const&, char)':
<artificial>:(.text+0x58e7): undefined reference to `fmt::FormatError::~FormatError()'
<artificial>:(.text+0x58f1): undefined reference to `typeinfo for fmt::FormatError'
collect2: error: ld returned 1 exit status
CMakeFiles/tfs.dir/build.make:2202: recipe for target 'tfs' failed
make[2]: *** [tfs] Error 1
CMakeFiles/Makefile2:99: recipe for target 'CMakeFiles/tfs.dir/all' failed
make[1]: *** [CMakeFiles/tfs.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Ubuntu 18.04

kozac commented 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
kozac commented 3 years ago

Resolvi inserindo #define FMT_HEADER_ONLY acima de #include "fmt/format.h" no game.cpp