Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Header Files at comp #116

Open
tafadzwagwena opened this issue Mar 20, 2019 · 0 comments
Open

Missing Header Files at comp #116

tafadzwagwena opened this issue Mar 20, 2019 · 0 comments

Comments

@tafadzwagwena
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant