You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I enountered a problem with building a rust program with highs dependency. Currently, if I try to build a very small app,
Cargo.toml:
[dependencies]
highs-sys = "1.5.3"
main.rs:
fnmain(){let problem = unsafe{ highs_sys::Highs_create()};}
highs-sys is built without problems, but cannot be linked with the main app, generating LD errors ld: error: undefined symbol: std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>::basic_string(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&).
The server is CentOS Linux 7, and it has g++ (GCC) 11.1.0, gcc (GCC) 11.1.0, and GNU ld version 2.27-44.base.el7_9.1.
I tried to modify highs-sysbuild.rs script, but without success for now.
One additional note: I could not compile HiGHS using clang, as it produces this error:
HiGHS/extern/zstr/zstr.hpp:439:23: error: attempt to use a deleted function
439 | std::istream::operator=(std::istream(rdbuf()));
I also tried to compile with older g++/gcc versions (8.1.0), but it produced the same problems.
What could be the possible next steps?
The text was updated successfully, but these errors were encountered:
Strange: zstr is not part of HiGHS, and we've never had any problems with it before. Perhaps we need to update the version we're using. Any thoughts @svigerske?
For the linking issue, it may help to see the full build log, so one could get some idea what may have left to this issue. Otherwise, it's even more guessing around.
I enountered a problem with building a rust program with
highs
dependency. Currently, if I try to build a very small app,Cargo.toml:
main.rs:
highs-sys
is built without problems, but cannot be linked with the main app, generating LD errorsld: error: undefined symbol: std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>::basic_string(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&&)
.The server is
CentOS Linux 7
, and it hasg++ (GCC) 11.1.0
,gcc (GCC) 11.1.0
, andGNU ld version 2.27-44.base.el7_9.1
.I tried to modify
highs-sys
build.rs
script, but without success for now.One additional note: I could not compile
HiGHS
usingclang
, as it produces this error:I also tried to compile with older g++/gcc versions (
8.1.0
), but it produced the same problems.What could be the possible next steps?
The text was updated successfully, but these errors were encountered: