Skip to content
New issue

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

Undefined reference to re2::RE2::~RE2()' #524

Open
seisdr opened this issue Dec 12, 2024 · 0 comments
Open

Undefined reference to re2::RE2::~RE2()' #524

seisdr opened this issue Dec 12, 2024 · 0 comments

Comments

@seisdr
Copy link

seisdr commented Dec 12, 2024

Trying to build camotics on arm64 ubuntu noble

root💩localhost ~/CAMotics ➜ g++ -o camsim -Wl,--as-needed -Wl,-s -Wl,-x -Wl,--gc-sections -no-pie -pthread -Wl,-rpath=/usr/include/qt5keychain//lib build/camsim.o build/qrc_camotics.o build/qrc_i18n.o -L/usr/local/lib -L/root/cbang/lib build/libCAMoticsGUI.a build/libclipper.a build/libDXF.a build/libSTL.a build/libGCode.a -lstdc++ -lGL -lutil -lcbang -lcbang-boost -lv8_libplatform -lv8 -lssl -lcrypto -levent -lexpat -lxxhash -llz4 -lbz2 -lz -lpthread -ldl -lm -lpython3.12 -lQt5OpenGL -lQt5Widgets -lQt5Gui -lQt5WebSockets -lQt5Network -lQt5Core build/dxflib/libdxflib.a build/cairo/libcairo.a
/usr/bin/ld: /root/cbang/lib/libcbang.a(Regex.o): in function `cb::RefCounterImpl<cb::Regex::private_t, cb::DeallocNew<cb::Regex::private_t> >::decCount(bool)':
Regex.cpp:(.text._ZN2cb14RefCounterImplINS_5Regex9private_tENS_10DeallocNewIS2_EEE8decCountEb[_ZN2cb14RefCounterImplINS_5Regex9private_tENS_10DeallocNewIS2_EEE8decCountEb]+0x1d8): undefined reference to `re2::RE2::~RE2()'
/usr/bin/ld: /root/cbang/lib/libcbang.a(Regex.o): in function `cb::Regex::match(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const':
Regex.cpp:(.text._ZNK2cb5Regex5matchERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0xdc): undefined reference to `re2::RE2::FullMatchN(re2::StringPiece const&, re2::RE2 const&, re2::RE2::Arg const* const*, int)'
/usr/bin/ld: /root/cbang/lib/libcbang.a(Regex.o): in function `cb::Regex::replace(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const':
Regex.cpp:(.text._ZNK2cb5Regex7replaceERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_+0xa4): undefined reference to `re2::RE2::Replace(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, re2::RE2 const&, re2::StringPiece const&)'
/usr/bin/ld: /root/cbang/lib/libcbang.a(Regex.o): in function `cb::Regex::private_t::private_t(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, re2::RE2::Options const&)':
Regex.cpp:(.text._ZN2cb5Regex9private_tC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN3re23RE27OptionsE[_ZN2cb5Regex9private_tC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN3re23RE27OptionsE]+0x3c): undefined reference to `re2::RE2::RE2(re2::StringPiece const&, re2::RE2::Options const&)'
/usr/bin/ld: Regex.cpp:(.text._ZN2cb5Regex9private_tC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN3re23RE27OptionsE[_ZN2cb5Regex9private_tC5ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKN3re23RE27OptionsE]+0x1c8): undefined reference to `re2::RE2::~RE2()'
collect2: error: ld returned 1 exit status
root🥰localhost ~/CAMotics ➜
root🧠localhost ~/CAMotics ➜
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant