knowledgedefinednetworking / a-deep-rl-approach-for-sdn-routing-optimization

A Deep-Reinforcement Learning Approach for Software-Defined Networking Routing Optimization
MIT License
272 stars 98 forks source link

Can't Run 'make' from inside 'omnet/router'. #11

Open JianhaoChung opened 2 years ago

JianhaoChung commented 2 years ago

Why cant I make in omnet/router?

How to deal with this, please!!!

(base) scnu-go@scnu-go:~/Projects_RL/a-deep-rl-approach-for-sdn-routing-optimization/omnet/router$ make
Application.cc
In file included from Application.h:24,
                 from Application.cc:16:
Statistic.h:35:17: error: ‘simtime_t’ has not been declared
   35 |     void infoTS(simtime_t time);
      |                 ^~~~~~~~~
Statistic.h:36:19: error: ‘simtime_t’ has not been declared
   36 |     void setDelay(simtime_t time, int i, int j, double d);
      |                   ^~~~~~~~~
Statistic.h:37:21: error: ‘simtime_t’ has not been declared
   37 |     void setTraffic(simtime_t time, int i, int j, double t);
      |                     ^~~~~~~~~
Statistic.h:41:18: error: ‘simtime_t’ has not been declared
   41 |     void setLost(simtime_t time, int n, int p);
      |                  ^~~~~~~~~
Statistic.h:42:18: error: ‘simtime_t’ has not been declared
   42 |     void setLost(simtime_t time);
      |                  ^~~~~~~~~
Statistic.h:62:5: error: ‘simtime_t’ does not name a type; did you mean ‘gmtime_r’?
   62 |     simtime_t INI;
      |     ^~~~~~~~~
      |     gmtime_r
Statistic.h:63:5: error: ‘simtime_t’ does not name a type; did you mean ‘gmtime_r’?
   63 |     simtime_t END;
      |     ^~~~~~~~~
      |     gmtime_r
In file included from Application.cc:16:
Application.h:33:1: error: expected class-name before ‘{’ token
   33 | {
      | ^
Application.h:54:32: error: ‘cMessage’ has not been declared
   54 |     virtual void handleMessage(cMessage *msg);
      |                                ^~~~~~~~
In file included from /home/scnu-go/SDN_RL_env/omnetpp-5.6.2-src-linux/omnetpp-5.6.2/include/omnetpp/cobject.h:26,
                 from /home/scnu-go/SDN_RL_env/omnetpp-5.6.2-src-linux/omnetpp-5.6.2/include/omnetpp/cnamedobject.h:23,
                 from /home/scnu-go/SDN_RL_env/omnetpp-5.6.2-src-linux/omnetpp-5.6.2/include/omnetpp/cownedobject.h:23,
                 from /home/scnu-go/SDN_RL_env/omnetpp-5.6.2-src-linux/omnetpp-5.6.2/include/omnetpp/carray.h:19,
                 from /home/scnu-go/SDN_RL_env/omnetpp-5.6.2-src-linux/omnetpp-5.6.2/include/omnetpp.h:28,
                 from Application.h:19,
                 from Application.cc:16:
Application.cc: In function ‘omnetpp::cObject* __factoryfunc_19()’:
Application.cc:19:15: error: cannot convert ‘Application*’ to ‘omnetpp::cModule*’ in initialization
   19 | Define_Module(Application);
      |               ^~~~~~~~~~~
Application.cc: In destructor ‘virtual Application::~Application()’:
Application.cc:29:6: error: ‘cancelAndDelete’ was not declared in this scope
   29 |      cancelAndDelete(interArrival);
      |      ^~~~~~~~~~~~~~~
Application.cc: In member function ‘virtual void Application::initialize()’:
Application.cc:36:10: error: ‘par’ was not declared in this scope
   36 |     id = par("id");
      |          ^~~
Application.cc: At global scope:
Application.cc:53:33: error: variable or field ‘handleMessage’ declared void
   53 | void Application::handleMessage(cMessage *msg)
      |                                 ^~~~~~~~
Application.cc:53:33: error: ‘cMessage’ was not declared in this scope; did you mean ‘omnetpp::cMessage’?
   53 | void Application::handleMessage(cMessage *msg)
      |                                 ^~~~~~~~
      |                                 omnetpp::cMessage
In file included from /home/scnu-go/SDN_RL_env/omnetpp-5.6.2-src-linux/omnetpp-5.6.2/include/omnetpp/cchannel.h:21,
                 from /home/scnu-go/SDN_RL_env/omnetpp-5.6.2-src-linux/omnetpp-5.6.2/include/omnetpp.h:35,
                 from Application.h:19,
                 from Application.cc:16:
/home/scnu-go/SDN_RL_env/omnetpp-5.6.2-src-linux/omnetpp-5.6.2/include/omnetpp/cmessage.h:95:15: note: ‘omnetpp::cMessage’ declared here
   95 | class SIM_API cMessage : public cEvent
      |               ^~~~~~~~
Application.cc:53:43: error: ‘msg’ was not declared in this scope; did you mean ‘osg’?
   53 | void Application::handleMessage(cMessage *msg)
      |                                           ^~~
      |                                           osg
make: *** [Makefile:107:out/gcc-release//Application.o] ERROR 1

Thanks a lot !!!!!!

JianhaoChung commented 2 years ago

'make clean' should help

JianhaoChung commented 2 years ago

consider use omnet++ 4.6 first