Skip to content

highs.dll in NuGet package is dynamically linked to Visual C++ library #2968

@ap5d

Description

@ap5d

My program using HiGHS was initially unable to complete optimizations due to crashing on a test system. I then realized that the unamanaged highs.dll included in the NuGet package has dependencies on Visual C++ standard library dlls, such as MSVCP140.dll. The test system had an old version of Visual C++ redistributable installed, which caused the crashes.

I can think of a couple options to prevent this issue:

  1. Document which version of Visual C++ redistributable needs to be installed
  2. Link the highs library statically with MSVC STL

I would prefer option 2 so that the NuGet package would contain all dependencies.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions