epanet-rtx icon indicating copy to clipboard operation
epanet-rtx copied to clipboard

Missing Header Files at comp

Open tafadzwagwena opened this issue 5 years ago • 0 comments

I seem to experiencing some missing header files in building the latest Epanet-RTX for example I cannot find the header file for the following function and many other EN functions. ‘EN_setlinkcomment’ epanet. I am trying to compile from linux after running cmake. Does any know which header file is assumed. I had believed these header file to epanet2.h or epanet2_2.h but still I could not find the missing functions. Bellow is an extract from my lunux compile Centos 7; The functions are mostly being called in EpanetModel.cpp

Thank you

/root/epanet-rtx/src/EpanetModel.cpp: In member function ‘double RTX::EpanetModel::getNodeValue(int, const string&)’: /root/epanet-rtx/src/EpanetModel.cpp:1079:71: error: cannot convert ‘Project**’ to ‘EN_Project {aka Project*}’ for argument ‘1’ to ‘int EN_getnodevalue(EN_Project, int, int, double*)’ EN_API_CHECK(EN_getnodevalue(_enModel, nodeIndex, epanetCode, &value), "EN_getnodevalue"); ^ /root/epanet-rtx/src/EpanetModel.cpp: In member function ‘void RTX::EpanetModel::setNodeValue(int, const string&, double)’: /root/epanet-rtx/src/EpanetModel.cpp:1087:70: error: cannot convert ‘Project**’ to ‘EN_Project {aka Project*}’ for argument ‘1’ to ‘int EN_setnodevalue(EN_Project, int, int, double)’ EN_API_CHECK(EN_setnodevalue(_enModel, nodeIndex, epanetCode, value), str); ^ /root/epanet-rtx/src/EpanetModel.cpp: In member function ‘double RTX::EpanetModel::getLinkValue(int, const string&)’: /root/epanet-rtx/src/EpanetModel.cpp:1093:71: error: cannot convert ‘Project**’ to ‘EN_Project {aka Project*}’ for argument ‘1’ to ‘int EN_getlinkvalue(EN_Project, int, int, double*)’ EN_API_CHECK(EN_getlinkvalue(_enModel, linkIndex, epanetCode, &value), "EN_getlinkvalue"); ^ /root/epanet-rtx/src/EpanetModel.cpp: In member function ‘void RTX::EpanetModel::setLinkValue(int, const string&, double)’: /root/epanet-rtx/src/EpanetModel.cpp:1098:70: error: cannot convert ‘Project**’ to ‘EN_Project {aka Project*}’ for argument ‘1’ to ‘int EN_setlinkvalue(EN_Project, int, int, double)’ EN_API_CHECK(EN_setlinkvalue(_enModel, linkIndex, epanetCode, value), "EN_setlinkvalue"); ^ /root/epanet-rtx/src/EpanetModel.cpp: In member function ‘void RTX::EpanetModel::setComment(RTX::Element::_sp, const string&)’: /root/epanet-rtx/src/EpanetModel.cpp:1110:74: error: ‘EN_setnodecomment’ was not declared in this scope EN_API_CHECK(EN_setnodecomment(_enModel, nodeIndex, comment.c_str()), "EN_setnodecomment"); ^ /root/epanet-rtx/src/EpanetModel.cpp:1118:74: error: ‘EN_setlinkcomment’ was not declared in this scope EN_API_CHECK(EN_setlinkcomment(_enModel, linkIndex, comment.c_str()), "EN_setlinkcomment"); ^ make[2]: *** [CMakeFiles/epanetrtx.dir/root/epanet-r

tafadzwagwena avatar Mar 20 '19 11:03 tafadzwagwena