CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

palabos under code::blocks

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 24, 2017, 03:13
Default palabos under code::blocks
  #1
New Member
 
WeiQi Huang
Join Date: Jun 2017
Posts: 1
Rep Power: 0
HUANG is on a distinguished road
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);
Is there are some problem in offical codes? Or if it is possible that there is something wrong with my compilers? There are three compilers which can be detected by code::blocks,GNU GCC Compiler(minGW), GNU Fortran Compiler(minGW) and Cygwin GCC.
I'm not really good at these things. Can anyone help me to solve this problem? Thank you in anticipation of your assistance.
HUANG is offline   Reply With Quote

Reply

Tags
code::blocks, palabos


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 01:17.