|
[Sponsors] |
June 24, 2017, 03:13 |
palabos under code::blocks
|
#1 |
New Member
WeiQi Huang
Join Date: Jun 2017
Posts: 1
Rep Power: 0 |
dear guys:
I'm a college student and just start using palabos through code::blocks. When I Open the project file '$(PALABOS)/codeblocks/Palabos.cbp' under code::blocks, as the palabos' offical website says, and build the project, there are 4 errors appeared: ||=== 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 corresponding codes of these four errors are the same: Code:
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. |
|
Tags |
code::blocks, palabos |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How can I modify the Palabos collision operation? | rickcjmac | Main CFD Forum | 1 | March 20, 2015 17:26 |
OpenFOAM + Code::Blocks | koala | OpenFOAM Programming & Development | 1 | October 17, 2014 08:05 |
Using the MinGW Compiler with MPI | Rich | Main CFD Forum | 3 | May 17, 2010 18:28 |