Skip to content

Windows: Cannot link cplex #1248

@ryankfrench

Description

@ryankfrench

When trying to build from source linking CPLEX and make dotnet I get this error:

LINK : fatal error LNK1181: cannot open input file 'c:\Program  Files\IBM\ILOG\CPLEX_Studio129\cplex\\cplex.lib'
tools\make.exe: *** [lib/ortools.lib] Error 1181

It seems that the cplex.lib file does not exist in that directory. This seems like a similar to #599.
No one seemed to have an issue after the proposed solution but I dont even have a cplex.lib on my computer and cplex is installed.

There are cplex1290.lib files in "C:\Program Files\CPLEX_Studio129\cplex\lib\x64_windows_vs2017\stat_mdd\cplex1290.lib" but not in the directory defined in Makefile.win.mk: STATIC_CPLEX_LNK = "$(WINDOWS_CPLEX_DIR)\cplex.lib"

I cannot use the CBC mixed integer solver because it has a bug and finds the wrong solution and claims it's optimal. Looks like it might be a current bug in their source according to their issues tracker. Any help would be appreciated.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions