Topic: Failed compilation latest master from github
Dear all,
The latest oofem fails from Mikaels latest github branch, due to the new function giveProperty in boundaryLoad. Any suggestions. Attached is the output
In file included from /usr/include/c++/5/bits/stl_algobase.h:64:0,
from /usr/include/c++/5/bits/char_traits.h:39,
from /usr/include/c++/5/string:40,
from /home/srinath/oofem_latest.git/src/oofemlib/femcmpnn.h:44,
from /home/srinath/oofem_latest.git/src/oofemlib/generalboundarycondition.h:38,
from /home/srinath/oofem_latest.git/src/oofemlib/load.h:38,
from /home/srinath/oofem_latest.git/src/oofemlib/boundaryload.h:38,
from /home/srinath/oofem_latest.git/src/oofemlib/boundaryload.C:35:
/usr/include/c++/5/bits/stl_pair.h: In instantiation of ‘constexpr std::pair<_T1, _T2>::pair() [with _T1 = const std::__cxx11::basic_string<char>; _T2 = oofem::FunctionArgument]’:
/home/srinath/oofem_latest.git/src/oofemlib/boundaryload.C:157:53: required from here
/usr/include/c++/5/bits/stl_pair.h:109:25: error: no matching function for call to ‘oofem::FunctionArgument::FunctionArgument()’
: first(), second() { }
^
In file included from /home/srinath/oofem_latest.git/src/oofemlib/boundaryload.C:36:0:
/home/srinath/oofem_latest.git/src/oofemlib/function.h:80:5: note: candidate: oofem::FunctionArgument::FunctionArgument(oofem::IntArray)
FunctionArgument(IntArray val) : type(FAT_IntArray), val0(0), val1(), val2(0), val3(std::move(val)) { }
^
/home/srinath/oofem_latest.git/src/oofemlib/function.h:80:5: note: candidate expects 1 argument, 0 provided
/home/srinath/oofem_latest.git/src/oofemlib/function.h:79:5: note: candidate: oofem::FunctionArgument::FunctionArgument(int)
FunctionArgument(int val) : type(FAT_int), val0(0), val1(), val2(val), val3() { }
^
/home/srinath/oofem_latest.git/src/oofemlib/function.h:79:5: note: candidate expects 1 argument, 0 provided
/home/srinath/oofem_latest.git/src/oofemlib/function.h:78:5: note: candidate: oofem::FunctionArgument::FunctionArgument(oofem::FloatArray)
FunctionArgument(FloatArray val) : type(FAT_FloatArray), val0(0), val1(std::move(val)), val2(0), val3() { }
^
/home/srinath/oofem_latest.git/src/oofemlib/function.h:78:5: note: candidate expects 1 argument, 0 provided
/home/srinath/oofem_latest.git/src/oofemlib/function.h:77:5: note: candidate: oofem::FunctionArgument::FunctionArgument(double)
FunctionArgument(double val) : type(FAT_double), val0(val), val1(), val2(0), val3() { }
^
/home/srinath/oofem_latest.git/src/oofemlib/function.h:77:5: note: candidate expects 1 argument, 0 provided
/home/srinath/oofem_latest.git/src/oofemlib/function.h:59:20: note: candidate: oofem::FunctionArgument::FunctionArgument(const oofem::FunctionArgument&)
class OOFEM_EXPORT FunctionArgument
^
/home/srinath/oofem_latest.git/src/oofemlib/function.h:59:20: note: candidate expects 1 argument, 0 provided
/home/srinath/oofem_latest.git/src/oofemlib/function.h:59:20: note: candidate: oofem::FunctionArgument::FunctionArgument(oofem::FunctionArgument&&)
/home/srinath/oofem_latest.git/src/oofemlib/function.h:59:20: note: candidate expects 1 argument, 0 provided
src/oofemlib/CMakeFiles/core.dir/build.make:5054: recipe for target 'src/oofemlib/CMakeFiles/core.dir/boundaryload.C.o' failed
make[2]: *** [src/oofemlib/CMakeFiles/core.dir/boundaryload.C.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:1315: recipe for target 'src/oofemlib/CMakeFiles/core.dir/all' failed