Closed vwmaus closed 7 years ago
Removed the DIMA include. Hope it can now be compiled.
thanks @GeorgKindermann. There is still some functions missing forVal
, agrVal
, and make_pair
forestCalculations.cpp:119:59: error: ‘forVal’ was not declared in this scope
double fval = forVal(compr,rotInter,priceTimber,forValNC);
...
forestCalculations.cpp:124:35: error: ‘agrVal’ was not declared in this scope
aval = coeffAgr * agrVal(compr) * (1 - minForest); // with interaction
...
misc.h:35:26: error: ‘make_pair’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
aMap.insert(make_pair(i, v));
Ups. Hope it works now with this Dima and with the included
forVal
and agrVal
are found now, but it still does not find make_pair
misc.h:28:26: error: ‘make_pair’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
aMap.insert(make_pair(i, v));
std:: was missing. Now it should find it. (Sorry. Currently I have no compiler and could try the changes by myself...) Georg
Great! All fine now, I just figured that problem out in this link http://opensuse-packaging.opensuse.narkive.com/F4X8bo3m/gcc-4-7-and-diclaration
It seems related to the gcc version!
Many thanks!
I cannot compile the model. The file ./dima/dima.cpp is missing.
Thanks!