Configuration of a new Gurobi C++ project with Microsoft Visual Studio 2019
OngoingHello,
I followed the guidelines of how to configure a new Gurobi C++ project with Microsoft Visual Studio 2019 (https://support.gurobi.com/hc/en-us/articles/360045702951). But still, get the following error: cannot open source file "gurobi_c++.h".
Could anyone please advise what should I do next to fix this issue?
Is it possible that the issue comes from:
Under Debugging I need to set Environment to PATH=$(PATH);$(GUROBI_HOME)\lib
For the "PATH=$(PATH)" part should I write a path to the project or something else?
Thanks in advance.
-
Can you try building one of the existing projects in the examples\build subdirectory of your Gurobi installation and see if that works? Thanks.
0 -
Hi Gwyneth,
I have tried to run "mip1_c++.cpp" example. Still have the same errors.0 -
Hi Dmitry -
Can you confirm that you tried building the examples by using the C++_examples_2019.sln project in the examples\build directory?
Gwyneth
0 -
Hi Gwyneth,
I have attached a screenshot. Please let me know if I did anything wrong. Thanks.0 -
Hi Dmitry -
This still does not look like you have opened the C++_examples_2019.sln project in the c:\gurobi911\win64\examples\build directory?
0
Please sign in to leave a comment.
Comments
5 comments