build problem with phoSim v5.0.0: std::atomic

Issue #47 resolved
Former user created an issue

A phoSim build issue turned up at NERSC when building for KNL using the Intel Compiler:

distortion.cpp(288): error: qualified name is not allowed
std::atomic<double> firstDisp, secondDisp; ^ distortion.cpp(288): error #77: this declaration has no storage class or type specifier std::atomic<double> firstDisp, secondDisp; ^ [...]

I got the code to build after taking the following two steps:

1. Add "-std=c++14" compile options
2. #include <atomic> to instrument/distortion.cpp

Please consider these changes for future releases.

Note: Intel compiler version = icpc (ICC) 18.0.1 20171018

Comments (2)

  1. Log in to comment