-
Notifications
You must be signed in to change notification settings - Fork 89
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
Include additional API REST library #93
Comments
Hello, sorry for the delay. You need to tell OMNeT where to find both the header and the library files. Try with the following procedure:
Then re-build everything and try to re-run your simulation. Best regards. |
Hello, sorry for the delay. You need to tell OMNeT where to find both the header and the library files. Try with this procedure:
Then try to re-build everything and run your simulation. Best regards. |
Hello, Thanks for your answer. But as soon as I modify the options in the "Project Properties ->Makemake" and change it from "Custom Makefile" to Makemake (So I can include the cpr as you suggested) the following error appears:
|
Hello,
I've been struggling with the inclusion of an additional library for handling Get requests from the MEC simulation. I need the MEC orchestrator to communicate with an API RESTful server and so I have found the CPR C++ library to do it in C++. I have successfully included the library into the MecOrchestrator.cc as follows:
#include <cpr/cpr.h>
And the project compiles and runs successfully. However, when I actually include a line using the library,
cpr::Response r = cpr::Get(cpr::Url{"http://www.httpbin.org/get"});
the following error arises:
It seems as if it couldn't find the Simu5G library. I already included the additional library into the Makemake Options in the part of Link (additional libraries to link with -l option)
Could you give me please some insights about how to include additional libraries or how to include an API Rest handler please ? Thanks a lot for your help
The text was updated successfully, but these errors were encountered: