We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
源码编译1.1.7,生成静态库libopencc.a 使用程序去链接静态库时,有下面的报错 /usr/bin/ld: /home/tyq/ctcc/code/third-lib/opencc/libopencc.a(MarisaDict.cpp.o): in function opencc::MarisaDict::Match(char const*, unsigned long) const': MarisaDict.cpp:(.text+0x1c8): undefined reference to marisa::Agent::Agent()' /usr/bin/ld: MarisaDict.cpp:(.text+0x1d8): undefined reference to marisa::Agent::set_query(char const*, unsigned long)' /usr/bin/ld: MarisaDict.cpp:(.text+0x1e8): undefined reference to marisa::Trie::lookup(marisa::Agent&) const' /usr/bin/ld: MarisaDict.cpp:(.text+0x240): undefined reference to marisa::Agent::~Agent()' /usr/bin/ld: MarisaDict.cpp:(.text+0x254): undefined reference to marisa::Agent::~Agent()' /usr/bin/ld: /home/tyq/ctcc/code/third-lib/opencc/libopencc.a(MarisaDict.cpp.o): in function opencc::MarisaDict::MatchPrefix(char const*, unsigned long) const': MarisaDict.cpp:(.text+0x29c): undefined reference to marisa::Agent::Agent()' /usr/bin/ld: MarisaDict.cpp:(.text+0x2c0): undefined reference to marisa::Agent::set_query(char const*, unsigned long)' /usr/bin/ld: MarisaDict.cpp:(.text+0x2d4): undefined reference to marisa::Trie::common_prefix_search(marisa::Agent&) const' /usr/bin/ld: MarisaDict.cpp:(.text+0x340): undefined reference to marisa::Agent::~Agent()' /usr/bin/ld: MarisaDict.cpp:(.text+0x354): undefined reference to marisa::Agent::~Agent()' /usr/bin/ld: /home/tyq/ctcc/code/third-lib/opencc/libopencc.a(MarisaDict.cpp.o): in function opencc::MarisaDict::MatchAllPrefixes(char const*, unsigned long) const': MarisaDict.cpp:(.text+0x3a0): undefined reference to marisa::Agent::Agent()' /usr/bin/ld: MarisaDict.cpp:(.text+0x3c4): undefined reference to marisa::Agent::set_query(char const*, unsigned long)' /usr/bin/ld: MarisaDict.cpp:(.text+0x3dc): undefined reference to marisa::Trie::common_prefix_search(marisa::Agent&) const' /usr/bin/ld: MarisaDict.cpp:(.text+0x454): undefined reference to marisa::Agent::~Agent()' /usr/bin/ld: MarisaDict.cpp:(.text+0x478): undefined reference to marisa::Agent::~Agent()' /usr/bin/ld: /home/tyq/ctcc/code/third-lib/opencc/libopencc.a(MarisaDict.cpp.o): in function opencc::MarisaDict::NewFromFile(_IO_FILE*)': MarisaDict.cpp:(.text+0x5fc): undefined reference to marisa::fread(_IO_FILE*, marisa::Trie*)' /usr/bin/ld: MarisaDict.cpp:(.text+0x62c): undefined reference to marisa::Agent::Agent()' /usr/bin/ld: MarisaDict.cpp:(.text+0x640): undefined reference to marisa::Agent::set_query(char const*)' /usr/bin/ld: MarisaDict.cpp:(.text+0x68c): undefined reference to marisa::Trie::predictive_search(marisa::Agent&) const' /usr/bin/ld: MarisaDict.cpp:(.text+0x808): undefined reference to marisa::Agent::~Agent()' /usr/bin/ld: MarisaDict.cpp:(.text+0x8bc): undefined reference to marisa::Agent::~Agent()' /usr/bin/ld: /home/tyq/ctcc/code/third-lib/opencc/libopencc.a(MarisaDict.cpp.o): in function opencc::MarisaDict::NewFromDict(opencc::Dict const&)': MarisaDict.cpp:(.text+0x94c): undefined reference to marisa::Keyset::Keyset()' /usr/bin/ld: MarisaDict.cpp:(.text+0x9c8): undefined reference to marisa::Keyset::push_back(char const*)' /usr/bin/ld: MarisaDict.cpp:(.text+0xa98): undefined reference to marisa::Trie::build(marisa::Keyset&, int)' /usr/bin/ld: MarisaDict.cpp:(.text+0xaa0): undefined reference to marisa::Agent::Agent()' /usr/bin/ld: MarisaDict.cpp:(.text+0xab4): undefined reference to marisa::Agent::set_query(char const*)' /usr/bin/ld: MarisaDict.cpp:(.text+0xafc): undefined reference to marisa::Trie::predictive_search(marisa::Agent&) const' /usr/bin/ld: MarisaDict.cpp:(.text+0xc28): undefined reference to marisa::Agent::~Agent()' /usr/bin/ld: MarisaDict.cpp:(.text+0xcc4): undefined reference to marisa::Agent::~Agent()' /usr/bin/ld: /home/tyq/ctcc/code/third-lib/opencc/libopencc.a(MarisaDict.cpp.o): in function opencc::MarisaDict::SerializeToFile(_IO_FILE*) const': MarisaDict.cpp:(.text+0xd7c): undefined reference to marisa::fwrite(_IO_FILE*, marisa::Trie const&)' /usr/bin/ld: /home/tyq/ctcc/code/third-lib/opencc/libopencc.a(MarisaDict.cpp.o): in function opencc::MarisaDict::MarisaInternal::MarisaInternal()': MarisaDict.cpp:(.text._ZN6opencc10MarisaDict14MarisaInternalC2Ev[_ZN6opencc10MarisaDict14MarisaInternalC5Ev]+0x24): undefined reference to marisa::Trie::Trie()' /usr/bin/ld: /home/tyq/ctcc/code/third-lib/opencc/libopencc.a(MarisaDict.cpp.o): in function std::default_delete<marisa::Trie>::operator()(marisa::Trie*) const': MarisaDict.cpp:(.text._ZNKSt14default_deleteIN6marisa4TrieEEclEPS1_[_ZNKSt14default_deleteIN6marisa4TrieEEclEPS1_]+0x24): undefined reference to marisa::Trie::~Trie()'
opencc::MarisaDict::Match(char const*, unsigned long) const': MarisaDict.cpp:(.text+0x1c8): undefined reference to
marisa::Agent::set_query(char const*, unsigned long)' /usr/bin/ld: MarisaDict.cpp:(.text+0x1e8): undefined reference to
marisa::Agent::~Agent()' /usr/bin/ld: MarisaDict.cpp:(.text+0x254): undefined reference to
opencc::MarisaDict::MatchPrefix(char const*, unsigned long) const': MarisaDict.cpp:(.text+0x29c): undefined reference to
marisa::Agent::set_query(char const*, unsigned long)' /usr/bin/ld: MarisaDict.cpp:(.text+0x2d4): undefined reference to
marisa::Agent::~Agent()' /usr/bin/ld: MarisaDict.cpp:(.text+0x354): undefined reference to
opencc::MarisaDict::MatchAllPrefixes(char const*, unsigned long) const': MarisaDict.cpp:(.text+0x3a0): undefined reference to
marisa::Agent::set_query(char const*, unsigned long)' /usr/bin/ld: MarisaDict.cpp:(.text+0x3dc): undefined reference to
marisa::Agent::~Agent()' /usr/bin/ld: MarisaDict.cpp:(.text+0x478): undefined reference to
opencc::MarisaDict::NewFromFile(_IO_FILE*)': MarisaDict.cpp:(.text+0x5fc): undefined reference to
marisa::Agent::Agent()' /usr/bin/ld: MarisaDict.cpp:(.text+0x640): undefined reference to
marisa::Trie::predictive_search(marisa::Agent&) const' /usr/bin/ld: MarisaDict.cpp:(.text+0x808): undefined reference to
marisa::Agent::~Agent()' /usr/bin/ld: /home/tyq/ctcc/code/third-lib/opencc/libopencc.a(MarisaDict.cpp.o): in function
marisa::Keyset::Keyset()' /usr/bin/ld: MarisaDict.cpp:(.text+0x9c8): undefined reference to
marisa::Trie::build(marisa::Keyset&, int)' /usr/bin/ld: MarisaDict.cpp:(.text+0xaa0): undefined reference to
marisa::Agent::set_query(char const*)' /usr/bin/ld: MarisaDict.cpp:(.text+0xafc): undefined reference to
marisa::Agent::~Agent()' /usr/bin/ld: MarisaDict.cpp:(.text+0xcc4): undefined reference to
opencc::MarisaDict::SerializeToFile(_IO_FILE*) const': MarisaDict.cpp:(.text+0xd7c): undefined reference to
opencc::MarisaDict::MarisaInternal::MarisaInternal()': MarisaDict.cpp:(.text._ZN6opencc10MarisaDict14MarisaInternalC2Ev[_ZN6opencc10MarisaDict14MarisaInternalC5Ev]+0x24): undefined reference to
std::default_delete<marisa::Trie>::operator()(marisa::Trie*) const': MarisaDict.cpp:(.text._ZNKSt14default_deleteIN6marisa4TrieEEclEPS1_[_ZNKSt14default_deleteIN6marisa4TrieEEclEPS1_]+0x24): undefined reference to
The text was updated successfully, but these errors were encountered:
armv8架构环境
Sorry, something went wrong.
No branches or pull requests
源码编译1.1.7,生成静态库libopencc.a
使用程序去链接静态库时,有下面的报错
/usr/bin/ld: /home/tyq/ctcc/code/third-lib/opencc/libopencc.a(MarisaDict.cpp.o): in function
opencc::MarisaDict::Match(char const*, unsigned long) const': MarisaDict.cpp:(.text+0x1c8): undefined reference to
marisa::Agent::Agent()'/usr/bin/ld: MarisaDict.cpp:(.text+0x1d8): undefined reference to
marisa::Agent::set_query(char const*, unsigned long)' /usr/bin/ld: MarisaDict.cpp:(.text+0x1e8): undefined reference to
marisa::Trie::lookup(marisa::Agent&) const'/usr/bin/ld: MarisaDict.cpp:(.text+0x240): undefined reference to
marisa::Agent::~Agent()' /usr/bin/ld: MarisaDict.cpp:(.text+0x254): undefined reference to
marisa::Agent::~Agent()'/usr/bin/ld: /home/tyq/ctcc/code/third-lib/opencc/libopencc.a(MarisaDict.cpp.o): in function
opencc::MarisaDict::MatchPrefix(char const*, unsigned long) const': MarisaDict.cpp:(.text+0x29c): undefined reference to
marisa::Agent::Agent()'/usr/bin/ld: MarisaDict.cpp:(.text+0x2c0): undefined reference to
marisa::Agent::set_query(char const*, unsigned long)' /usr/bin/ld: MarisaDict.cpp:(.text+0x2d4): undefined reference to
marisa::Trie::common_prefix_search(marisa::Agent&) const'/usr/bin/ld: MarisaDict.cpp:(.text+0x340): undefined reference to
marisa::Agent::~Agent()' /usr/bin/ld: MarisaDict.cpp:(.text+0x354): undefined reference to
marisa::Agent::~Agent()'/usr/bin/ld: /home/tyq/ctcc/code/third-lib/opencc/libopencc.a(MarisaDict.cpp.o): in function
opencc::MarisaDict::MatchAllPrefixes(char const*, unsigned long) const': MarisaDict.cpp:(.text+0x3a0): undefined reference to
marisa::Agent::Agent()'/usr/bin/ld: MarisaDict.cpp:(.text+0x3c4): undefined reference to
marisa::Agent::set_query(char const*, unsigned long)' /usr/bin/ld: MarisaDict.cpp:(.text+0x3dc): undefined reference to
marisa::Trie::common_prefix_search(marisa::Agent&) const'/usr/bin/ld: MarisaDict.cpp:(.text+0x454): undefined reference to
marisa::Agent::~Agent()' /usr/bin/ld: MarisaDict.cpp:(.text+0x478): undefined reference to
marisa::Agent::~Agent()'/usr/bin/ld: /home/tyq/ctcc/code/third-lib/opencc/libopencc.a(MarisaDict.cpp.o): in function
opencc::MarisaDict::NewFromFile(_IO_FILE*)': MarisaDict.cpp:(.text+0x5fc): undefined reference to
marisa::fread(_IO_FILE*, marisa::Trie*)'/usr/bin/ld: MarisaDict.cpp:(.text+0x62c): undefined reference to
marisa::Agent::Agent()' /usr/bin/ld: MarisaDict.cpp:(.text+0x640): undefined reference to
marisa::Agent::set_query(char const*)'/usr/bin/ld: MarisaDict.cpp:(.text+0x68c): undefined reference to
marisa::Trie::predictive_search(marisa::Agent&) const' /usr/bin/ld: MarisaDict.cpp:(.text+0x808): undefined reference to
marisa::Agent::~Agent()'/usr/bin/ld: MarisaDict.cpp:(.text+0x8bc): undefined reference to
marisa::Agent::~Agent()' /usr/bin/ld: /home/tyq/ctcc/code/third-lib/opencc/libopencc.a(MarisaDict.cpp.o): in function
opencc::MarisaDict::NewFromDict(opencc::Dict const&)':MarisaDict.cpp:(.text+0x94c): undefined reference to
marisa::Keyset::Keyset()' /usr/bin/ld: MarisaDict.cpp:(.text+0x9c8): undefined reference to
marisa::Keyset::push_back(char const*)'/usr/bin/ld: MarisaDict.cpp:(.text+0xa98): undefined reference to
marisa::Trie::build(marisa::Keyset&, int)' /usr/bin/ld: MarisaDict.cpp:(.text+0xaa0): undefined reference to
marisa::Agent::Agent()'/usr/bin/ld: MarisaDict.cpp:(.text+0xab4): undefined reference to
marisa::Agent::set_query(char const*)' /usr/bin/ld: MarisaDict.cpp:(.text+0xafc): undefined reference to
marisa::Trie::predictive_search(marisa::Agent&) const'/usr/bin/ld: MarisaDict.cpp:(.text+0xc28): undefined reference to
marisa::Agent::~Agent()' /usr/bin/ld: MarisaDict.cpp:(.text+0xcc4): undefined reference to
marisa::Agent::~Agent()'/usr/bin/ld: /home/tyq/ctcc/code/third-lib/opencc/libopencc.a(MarisaDict.cpp.o): in function
opencc::MarisaDict::SerializeToFile(_IO_FILE*) const': MarisaDict.cpp:(.text+0xd7c): undefined reference to
marisa::fwrite(_IO_FILE*, marisa::Trie const&)'/usr/bin/ld: /home/tyq/ctcc/code/third-lib/opencc/libopencc.a(MarisaDict.cpp.o): in function
opencc::MarisaDict::MarisaInternal::MarisaInternal()': MarisaDict.cpp:(.text._ZN6opencc10MarisaDict14MarisaInternalC2Ev[_ZN6opencc10MarisaDict14MarisaInternalC5Ev]+0x24): undefined reference to
marisa::Trie::Trie()'/usr/bin/ld: /home/tyq/ctcc/code/third-lib/opencc/libopencc.a(MarisaDict.cpp.o): in function
std::default_delete<marisa::Trie>::operator()(marisa::Trie*) const': MarisaDict.cpp:(.text._ZNKSt14default_deleteIN6marisa4TrieEEclEPS1_[_ZNKSt14default_deleteIN6marisa4TrieEEclEPS1_]+0x24): undefined reference to
marisa::Trie::~Trie()'The text was updated successfully, but these errors were encountered: