coin-or / coin-or/OS

OS fails to build with MSVC 14

Open
#63 1 comment 0 reactions 0 assignees View on GitHub
blocker bug solver interface
Dominant language
C++
Stars
2
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Issue created by migration from Trac.

Original creator: @tkralphs

Original creation time: 2018-01-07 20:24:23

Version:

You are doing some implicit type conversions that aren't allowed in Visual Studio.

../../../../OS/src/OSCommonInterfaces/OSMatrix.cpp(3944): error C2440: 'type cast': cannot convert from 'double' to 'ENUM_MATRIX_TYPE'
../../../../OS/src/OSCommonInterfaces/OSMatrix.cpp(3944): note: Conversions between enumeration and floating point values are no longer allowed
../../../../OS/src/OSCommonInterfaces/OSMatrix.cpp(3946): error C2440: 'type cast': cannot convert from 'double' to 'ENUM_MATRIX_SYMMETRY'
../../../../OS/src/OSCommonInterfaces/OSMatrix.cpp(3946): note: Conversions between enumeration and floating point values are no longer allowed
../../../../OS/src/OSCommonInterfaces/OSMatrix.cpp(4044): error C2440: 'type cast': cannot convert from 'double' to 'ENUM_MATRIX_TYPE'
../../../../OS/src/OSCommonInterfaces/OSMatrix.cpp(4044): note: Conversions between enumeration and floating point values are no longer allowed
../../../../OS/src/OSCommonInterfaces/OSMatrix.cpp(4046): error C2440: 'type cast': cannot convert from 'double' to 'ENUM_MATRIX_SYMMETRY'
../../../../OS/src/OSCommonInterfaces/OSMatrix.cpp(4046): note: Conversions between enumeration and floating point values are no longer allowed
../../../../OS/src/OSCommonInterfaces/OSMatrix.cpp(4144): error C2440: 'type cast': cannot convert from 'double' to 'ENUM_MATRIX_TYPE'
../../../../OS/src/OSCommonInterfaces/OSMatrix.cpp(4144): note: Conversions between enumeration and floating point values are no longer allowed
../../../../OS/src/OSCommonInterfaces/OSMatrix.cpp(4146): error C2440: 'type cast': cannot convert from 'double' to 'ENUM_MATRIX_SYMMETRY'
../../../../OS/src/OSCommonInterfaces/OSMatrix.cpp(4146): note: Conversions between enumeration and floating point values are no longer allowed

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in OS/src/OSCommonInterfaces/OSMatrix.cpp around lines 3944, 3946, 4044, 4046, 4144, and 4146, then reproduce the build with MSVC 14. Review the enum conversions reported by the compiler and confirm that the project builds successfully without these C2440 errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.