Then, I run "make" and have the following errors:
(...)
CAccessorImplementation.cc: In member function 'virtual void CAccessorImplementation::getRandomIDs(std::list<long int>&, std::list<long int>::size_type) const':
CAccessorImplementation.cc:129:28: error: 'rand' was not declared in this scope
lPositions.insert(rand()%lModulo);
^
CAccessorImplementation.cc:132:28: error: 'rand' was not declared in this scope
lPositions.insert(rand()%lModulo);
^
CAccessorImplementation.cc: In member function 'virtual void CAccessorImplementation::getRandomAccessorElements(std::list<CAccessorElement>&, std::list<CAccessorElement>::size_type) const':
CAccessorImplementation.cc:188:28: error: 'rand' was not declared in this scope
lPositions.insert(rand()%lModulo);
^
CAccessorImplementation.cc:192:28: error: 'rand' was not declared in this scope
lPositions.insert(rand()%lModulo);
^
make[3]: *** [CAccessorImplementation.lo] Error 1
make[3]: Leaving directory `/home/icalixto/tools/gift-0.1.13-install/libMRML/cc'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/icalixto/tools/gift-0.1.13-install/libMRML'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/icalixto/tools/gift-0.1.13-install'
make: *** [all-recursive-am] Error 2
I even tried editing the "CAccessorImplementation.cc" file and adding a "#include <cstdlib>", so these errors are fixed. But when I do that, new errors arise:
(...)
In file included from ../../libMRML/include/CXMLElement.h:34:0,
from CAccessorFactoryContainer.cc:38:
../../libMRML/include/CAttributeList.h:80:8: error: extra qualification 'CAttributeList::' on member 'toXML' [-fpermissive]
void CAttributeList::toXML(string& outString)const;
^
make[3]: *** [CAccessorFactoryContainer.lo] Error 1
make[3]: Leaving directory `/home/icalixto/tools/gift-0.1.13-install/libMRML/cc'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/icalixto/tools/gift-0.1.13-install/libMRML'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/icalixto/tools/gift-0.1.13-install'
make: *** [all-recursive-am] Error 2
Would you know whether I am doing something wrong? The exact same thing happens both for the versions 0.1.14 and the 0.1.13 of gift, by the way.
Thanks,
Iacer Calixto.