I am a fresh man in Palabos and start using codeblocks just now. When I try to build the file, /codeblocks/Palabos.cbp, in codeblocks, 4 errors appearred. Like this:
||=== Build: Release in Palabos (compiler: GNU GCC Compiler) ===|
C:\cygwin\home\HUANG\palabos-v1.5r1\src\core\plbTimer.cpp||In member function ‘void plb::global::PlbTimer::start()’
C:\cygwin\home\HUANG\palabos-v1.5r1\src\core\plbTimer.cpp|50|error: ‘CLOCK_REALTIME’ was not declared in this scope|
C:\cygwin\home\HUANG\palabos-v1.5r1\src\core\plbTimer.cpp|50|error: ‘clock_gettime’ was not declared in this scope|
C:\cygwin\home\HUANG\palabos-v1.5r1\src\core\plbTimer.cpp||In member function ‘double plb::global::PlbTimer::getTime() const’
C:\cygwin\home\HUANG\palabos-v1.5r1\src\core\plbTimer.cpp|81|error: ‘CLOCK_REALTIME’ was not declared in this scope|
C:\cygwin\home\HUANG\palabos-v1.5r1\src\core\plbTimer.cpp|81|error: ‘clock_gettime’ was not declared in this scope|
||=== Build failed: 4 error(s), 0 warning(s) (0 minute(s), 2 second(s)) ===|
the correspond code of different errors are the same:
clock_gettime(CLOCK_REALTIME, &ts);
I’m not really good at these things. Can anyone help me to solve this problem? Thank you in anticipation of your assistance.