【VS/GUROBI】configure a new Gurobi C++ project with Microsoft Visual Studio 2015
来源:互联网 发布:淘宝 手机店 编辑:程序博客网 时间:2024/05/22 05:16
【精简版】
1.配置:release;x64
PS:VS菜单栏中也注意修改
2.C/C++:
常规-》附加包含目录:
C:\gurobi701\win64\include
代码生成-》运行库【默认】:
多线程调试 DLL (/MDd)
3.链接器:输入(注意与2中一致)
C:\gurobi701\win64\lib\gurobi70.lib;C:\gurobi701\win64\lib\gurobi_c++mdd2015.lib;%(AdditionalDependencies)【官网原文】
- Under the File menu, select New > Project...; on the Installed Templates panel, select Other Languages > Visual C++ > Win32, then select Win32 Console Application. For illustration, let's call it gurobitest. Press the Finish button to close the Wizard.
- To add an existing source file:
- Under Source Files below the project name in the Solution Explorer panel, right click on the initial source file that Visual Studio adds to the project (gurobitest.cpp in our example). Select Remove, then press Delete.
- Right-click on the project name in the Solution Explorer panel, then select Add > Existing Item..., then choose your C++ source file.
- Right-click on the project name in the Solution Explorer panel, then select Properties.
- For 32-bit Gurobi libraries:
- Set Platform to Win32 (if not already selected)
- Under C/C++ / General / Additional Include Directories, add: c:\gurobi701\win32\include
- Under Linker / General / Additional Library Directories, add: c:\gurobi701\win32\lib
- For 64-bit Gurobi libraries:
- Set Platform to x64 (if not already selected)
- Under C/C++ / General / Additional Include Directories, add: c:\gurobi701\win64\include
- Under Linker / General / Additional Library Directories, add: c:\gurobi701\win64\lib
- Under C/C++ / Precompiled Headers / Precompiled Header, select Not Using Precompiled Headers
- Under Linker / Input / Additional Dependencies, add gurobi70.lib and gurobi_c++mdd2015.lib
0 0
- 【VS/GUROBI】configure a new Gurobi C++ project with Microsoft Visual Studio 2015
- 【VS/GUROBI】解LP示例;column generation
- gurobi安装
- python+gurobi
- gurobi安装
- gurobi安装
- YALMIP与gurobi安装
- Linux下安装gurobi
- 【使用笔记】Gurobi for matlab
- 关于Gurobi License过期问题
- gurobi学习笔记(一)
- Gurobi获得变量的值
- How to configure a C/C++ project with Eclipse and CMake
- Microsoft Office Development with Visual Studio
- how to begin with a new project
- Create a simple unit test project with Visual Studio Unit Testing Framework
- Build a .NET Application on the Oracle Database with Microsoft Visual Studio 2010
- R语言-大规模优化器(gurobi)
- nodejs之http、fs、querystring模块实现网页与服务器的交互
- HTTPS握手过程
- Java 浅拷贝和深拷贝的代码示例
- 12. Integer to Roman
- ButterKnife使用详解
- 【VS/GUROBI】configure a new Gurobi C++ project with Microsoft Visual Studio 2015
- JFinalConfig 配置
- STM32 BSRR BRR
- 关键段和互斥量的区别
- GitHub for Windows 安装失败,An error occurred attempting to install github 的解决办法
- Leetcode016--链表相邻元素进行交换
- zynq 内核编译
- 欧几里德 java
- poj 3040 深入理解贪心思想