Re: [R-pkg-devel] OpenMP variable not specified in enclosing 'parallel'

2020-03-23 Thread Ivan Krylov
On Mon, 23 Mar 2020 15:29:20 +0100 Emil Sjørup wrote: > const int iMaxLag = 20; > error: ‘iMaxLag’ not specified in enclosing ‘parallel’ > error: ‘iMaxLag’ is predetermined ‘shared’ for ‘shared’ This looks like a compiler bug to me. g++ seems to forget the rule that "const" variables are suppo

[R-pkg-devel] OpenMP variable not specified in enclosing 'parallel'

2020-03-23 Thread Emil Sjørup
Hi, I am getting an error message during pre-checks when I upload a new version of my package to CRAN, and I need help. See: https://win-builder.r-project.org/incoming_pretest/DriftBurstHypothesis_0.3.0.1_20200322_134148/Debian/00install.out The package installs just fine on windows, an