Skip to main content

Initialization error: cannot find -lgurobi_c++.h

Answered

Comments

3 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff
    This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum, or try Gurobot, our chatbot interface offering instant, expert-level support.
  • Jaromił Najman
    • Gurobi Staff

    Maybe How do I use CMake to build Gurobi C/C++ projects? might be helpful.

    0
  • Matthias Miltenberger
    • Gurobi Staff

    To explain the error: You cannot specify header files (*.h) in the CMake command target_link_libraries. This command is meant to specify libraries like libgurobi.so.

    0

Post is closed for comments.