Hi William,
Thanks for mentioning.
You can send compiler errors to yade-dev (are you member of yade-dev?
else I suggest you join) or even better to a bug report.
It is better to specificy revision numbers, to.
Your last revision [1] made it through the buildbot.
Do you still have the problem localy? It would be specific to your
system maybe.
Bruno
[1] https://yade-dem.org/buildbot/builders/yade-full/builds/4507
On 03/08/2018 07:52 PM, Chevremont William wrote:
New question #665387 on Yade:
https://answers.launchpad.net/yade/+question/665387
Hi,
I've just updated the source code of yade using git pull and I get this compile
error, comming from code added 2 days ago:
/media/datas/Yade2/trunk/pkg/dem/JointedCohesiveFrictionalPM.cpp: In member function
‘void
Ip2_JCFpmMat_JCFpmMat_JCFpmPhys::distributeCrossSectionsWeibull(boost::shared_ptr<JCFpmPhys>,
Real, Real)’:
/media/datas/Yade2/trunk/pkg/dem/JointedCohesiveFrictionalPM.cpp:600:7: error:
‘random_device’ is not a member of ‘std’
std::random_device rd;
^~~~~~~~~~~~~
/media/datas/Yade2/trunk/pkg/dem/JointedCohesiveFrictionalPM.cpp:600:7: note:
suggested alternative: ‘random_shuffle’
std::random_device rd;
^~~~~~~~~~~~~
random_shuffle
/media/datas/Yade2/trunk/pkg/dem/JointedCohesiveFrictionalPM.cpp:601:7: error:
‘mt19937’ is not a member of ‘std’
std::mt19937 e2(rd());
^~~~~~~
/media/datas/Yade2/trunk/pkg/dem/JointedCohesiveFrictionalPM.cpp:602:7: error:
‘weibull_distribution’ is not a member of ‘std’
std::weibull_distribution<Real>
weibullDistribution(xSectionWeibullShapeParameter, xSectionWeibullScaleParameter);
^~~~~~~~~~~~~~~~~~~~
/media/datas/Yade2/trunk/pkg/dem/JointedCohesiveFrictionalPM.cpp:602:7: note:
suggested alternative: ‘uniform_int_distribution’
std::weibull_distribution<Real>
weibullDistribution(xSectionWeibullShapeParameter, xSectionWeibullScaleParameter);
^~~~~~~~~~~~~~~~~~~~
uniform_int_distribution
/media/datas/Yade2/trunk/pkg/dem/JointedCohesiveFrictionalPM.cpp:602:32: error:
expected primary-expression before ‘>’ token
std::weibull_distribution<Real>
weibullDistribution(xSectionWeibullShapeParameter, xSectionWeibullScaleParameter);
^
/media/datas/Yade2/trunk/pkg/dem/JointedCohesiveFrictionalPM.cpp:602:34: error:
‘weibullDistribution’ was not declared in this scope
std::weibull_distribution<Real>
weibullDistribution(xSectionWeibullShapeParameter, xSectionWeibullScaleParameter);
^~~~~~~~~~~~~~~~~~~
/media/datas/Yade2/trunk/pkg/dem/JointedCohesiveFrictionalPM.cpp:602:34: note:
suggested alternative: ‘weibullCutOffMin’
std::weibull_distribution<Real>
weibullDistribution(xSectionWeibullShapeParameter, xSectionWeibullScaleParameter);
^~~~~~~~~~~~~~~~~~~
weibullCutOffMin
/media/datas/Yade2/trunk/pkg/dem/JointedCohesiveFrictionalPM.cpp:603:40: error:
‘e2’ was not declared in this scope
Real correction = weibullDistribution(e2);
^~
/media/datas/Yade2/trunk/pkg/dem/JointedCohesiveFrictionalPM.cpp:603:40: note:
suggested alternative: ‘R2’
Real correction = weibullDistribution(e2);
^~
R2
_______________________________________________
Mailing list: https://launchpad.net/~yade-dev
Post to : yade-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-dev
More help : https://help.launchpad.net/ListHelp