Welcome! Log In Create A New Profile

Advanced

palabos in codeblocks

Posted by AHUANGAHUANG  
palabos in codeblocks
June 23, 2017 05:59AM
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.
Re: palabos in codeblocks
November 04, 2017 02:01AM
Hi Ahuang,

Have you tried visitting this link? [www.palabos.org]

Hopefully it may help you with the clock_gettime. Good luck
Sorry, you do not have permission to post/reply in this forum.