FLENS icon indicating copy to clipboard operation
FLENS copied to clipboard

Compilation problems with Visual C++ 2017

Open dasmysh opened this issue 7 years ago • 1 comments

When compiling the code in Visual Studio 2017 I got an error in file densevector.h. For some reason VS does not understand Engine::defaultIndexBase.

This can be fixed easily by adding a new constant to the class: static const IndexType defaultIndexBase = Engine::defaultIndexBase;

The method declaration of resize can then refer to that constant.

dasmysh avatar Jul 12 '17 13:07 dasmysh

There also is a warning in file ilaenv.tcc that could possibly lead to an error.

Please use the correct casts to avoid any numerical problems.

Possible solution is to change line 376 to: result = static_cast<int>(static_cast<double>(nx)/1.5);

I'm not sure if that is the correct and intended behavior though.

dasmysh avatar Jul 12 '17 15:07 dasmysh