Skip to content

Trying to build on MacOSX #1

@Aklotz-cadence

Description

@Aklotz-cadence

Hello,

I'm trying to build ILPSolverInterface on MacOSX. I think I've got pretty far, but then I get following errors:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -O3 -DNDEBUG -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -mmacosx-version-min=10.15 -dynamiclib -Wl,-headerpad_max_install_names -o _deps/ilpsolverif-build/ILPSolverIf/libILPSolverIf_shared.dylib -install_name @rpath/libILPSolverIf_shared.dylib _deps/ilpsolverif-build/ILPSolverIf/CMakeFiles/ILPSolverIf_shared.dir/ILPSolverIf.cpp.o
Undefined symbols for architecture x86_64:
"sym_write_lp(SYM_ENVIRONMENT*, char*)", referenced from:
ILPSolverIf::writelp(char*, char**, char**) in ILPSolverIf.cpp.o
"sym_get_status(SYM_ENVIRONMENT*)", referenced from:
ILPSolverIf::solve(int) in ILPSolverIf.cpp.o
"sym_get_infinity()", referenced from:
ILPSolverIf::getInfinity() const in ILPSolverIf.cpp.o
"sym_get_num_cols(SYM_ENVIRONMENT*, int*)", referenced from:
ILPSolverIf::solve(int) in ILPSolverIf.cpp.o
"sym_set_col_names(SYM_ENVIRONMENT*, char**)", referenced from:
ILPSolverIf::writelp(char*, char**, char**) in ILPSolverIf.cpp.o
"sym_set_int_param(SYM_ENVIRONMENT*, char const*, int)", referenced from:
ILPSolverIf::loadProblemSym(int, int, int*, int*, double*, double*, double*, char*, double*, char*, double*) in ILPSolverIf.cpp.o
ILPSolverIf::solve(int) in ILPSolverIf.cpp.o
"sym_get_col_solution(SYM_ENVIRONMENT*, double*)", referenced from:
ILPSolverIf::solve(int) in ILPSolverIf.cpp.o
"sym_open_environment()", referenced from:
ILPSolverIf::ILPSolverIf(SOLVER_ENUM const&) in ILPSolverIf.cpp.o
ILPSolverIf::ILPSolverIf(SOLVER_ENUM const&) in ILPSolverIf.cpp.o
"sym_close_environment(SYM_ENVIRONMENT*)", referenced from:
ILPSolverIf::~ILPSolverIf() in ILPSolverIf.cpp.o
ILPSolverIf::~ILPSolverIf() in ILPSolverIf.cpp.o
"sym_explicit_load_problem(SYM_ENVIRONMENT*, int, int, int*, int*, double*, double*, double*, char*, double*, double*, char*, double*, double*, char)", referenced from:
ILPSolverIf::loadProblemSym(int, int, int*, int*, double*, double*, double*, char*, double*, char*, double*) in ILPSolverIf.cpp.o
"CbcMain(int, char const**, CbcModel&)", referenced from:
ILPSolverIf::solve(int) in ILPSolverIf.cpp.o
"sym_solve(SYM_ENVIRONMENT*)", referenced from:
ILPSolverIf::solve(int) in ILPSolverIf.cpp.o
"OsiClpSolverInterface::OsiClpSolverInterface()", referenced from:
ILPSolverIf::ILPSolverIf(SOLVER_ENUM const&) in ILPSolverIf.cpp.o
ILPSolverIf::ILPSolverIf(SOLVER_ENUM const&) in ILPSolverIf.cpp.o
"CbcModel::setLogLevel(int)", referenced from:
ILPSolverIf::solve(int) in ILPSolverIf.cpp.o
"CbcModel::haveMultiThreadSupport()", referenced from:
ILPSolverIf::solve(int) in ILPSolverIf.cpp.o
"CbcModel::setMaximumSavedSolutions(int)", referenced from:
ILPSolverIf::solve(int) in ILPSolverIf.cpp.o
"CbcModel::CbcModel(OsiSolverInterface const&)", referenced from:
ILPSolverIf::solve(int) in ILPSolverIf.cpp.o
"CbcModel::~CbcModel()", referenced from:
ILPSolverIf::solve(int) in ILPSolverIf.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions