Skip to content

MVSC fails compiling Minuit2 with OpenMP enabled #20586

@AdrianDBS

Description

@AdrianDBS

Check duplicate issues.

  • Checked for duplicates

Description

Compiling Minuit2 with minuit2_omp=ON when using MVSC raises error C3016: 'i': index variable in OpenMP 'for' statement must have signed integral type

Source of the error is line 102 in math/minuit2/src/Numerical2PGradientCalculator.cxx where (in commit 95035e2) the for-loop variable type was changed from integer to unsigned integer. While this is no problem for GCC, MVSC apparently strictly forbids this.

Reproducer

Just compile Minuit2 with minuit2_omp=ON using MVSC.

ROOT version

Affected version: v6-38-00
More specifically: Every revision downstream of commit 95035e2

Installation method

Build from source

Operating system

Windows

Additional context

No response

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions