Skip to content

Re: how to get started with openlb

#2025
jepson
Member

By the way, the same problem happens in other examplesrnrnpeijie@peijie-desktop:~/olb/0.6r0/examples/forcedPoiseuille2d$ makernCreate dependencies for forcedPoiseuille.cpprnCompile forcedPoiseuille.cpprng++ -DOLB_PRECOMPILED -O3 -Wall -I../../src -I../../src/external -I../../src/external/cvmlcpp -I../../src/external/boost -c forcedPoiseuille.cpp -o /home/peijie/olb/0.6r0/examples/forcedPoiseuille2d/forcedPoiseuille.ornIn file included from ../../src/core/core2D.hh:34:0,rn from ../../src/olb2D.hh:1,rn from forcedPoiseuille.cpp:25:rn../../src/core/serializer.hh: In function ‘void olb::copySerializedData(const olb::DataSerializer<T>&, olb::DataUnSerializer<T>&)’:rn../../src/core/serializer.hh:144:32: error: ‘ptrdiff_t’ was not declared in this scopern../../src/core/serializer.hh:144:32: note: suggested alternatives:rn/usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note: ‘std::ptrdiff_t’rn/usr/include/c++/4.6/x86_64-linux-gnu/./bits/c++config.h:156:28: note: ‘std::ptrdiff_t’rn../../src/core/serializer.hh:144:42: error: expected ‘,’ or ‘;’ before ‘serializerBufferSize’rn../../src/core/serializer.hh:145:43: error: expected ‘,’ or ‘;’ before ‘unSerializerBufferSize’rn../../src/io/imageWriter.hh: In member function ‘void olb::graphics::ImageWriter<T>::writeGif(const string&, const olb::ScalarFieldBase2D<T>&, T, T, T, T) const [with T = double, std::string = std::basic_string<char>]’:rn../../src/io/imageWriter.hh:138:9: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]rn../../src/io/imageWriter.hh:143:9: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]rnmake: *** [/home/peijie/olb/0.6r0/examples/forcedPoiseuille2d/forcedPoiseuille.o] Error 1rnrnany suggestions?rnrnmany thanks!