jacob-mf / routing-wmn

OMNeT++ project about routing protocols under wireless mesh networks. Presents main brand new ACO based routing protocol AntWMNet, and AODV and static protocols versions, also 3 WMNs samples
GNU General Public License v2.0
20 stars 7 forks source link

Many Errors #1

Closed dhavalkvaria closed 5 years ago

dhavalkvaria commented 5 years ago

Dear Sir, I am getting following error trail.Please help me to solve it. C:/Users/USER/src/omnetpp-5.4.1/include/omnetpp/platdep/platmisc.h:153:9: error: unknown type name 'int64_t' typedef int64_t file_offset_t; // off_t on Linux ^ In file included from node/Wlan80211.cc:22: In file included from node/Wlan80211.h:21: In file included from C:/Users/USER/src/omnetpp-5.4.1/include\omnetpp.h:28: In file included from C:/Users/USER/src/omnetpp-5.4.1/include/omnetpp/carray.h:19: In file included from C:/Users/USER/src/omnetpp-5.4.1/include/omnetpp/cownedobject.h:22: C:/Users/USER/src/omnetpp-5.4.1/include/omnetpp/simutil.h:56:24: error: no member named 'is_integral' in namespace 'std' static_assert(std::is_integral::value && std::is_integral::value, "checked_int_cast expects integers");


C:/Users/USER/src/omnetpp-5.4.1/include/omnetpp/simutil.h:56:36: error: 'ToInt' does not refer to a value
    static_assert(std::is_integral<ToInt>::value && std::is_integral<FromInt>::value, "checked_int_cast expects integers");
                                   ^
C:/Users/USER/src/omnetpp-5.4.1/include/omnetpp/simutil.h:53:19: note: declared here
template<typename ToInt, typename FromInt>
                  ^
C:/Users/USER/src/omnetpp-5.4.1/include/omnetpp/simutil.h:56:44: error: no member named 'value' in the global namespace
    static_assert(std::is_integral<ToInt>::value && std::is_integral<FromInt>::value, "checked_int_cast expects integers");
                                         ~~^
C:/Users/USER/src/omnetpp-5.4.1/include/omnetpp/simutil.h:56:58: error: no member named 'is_integral' in namespace 'std'
    static_assert(std::is_integral<ToInt>::value && std::is_integral<FromInt>::value, "checked_int_cast expects integers");
                                                    ~~~~~^
C:/Users/USER/src/omnetpp-5.4.1/include/omnetpp/simutil.h:56:70: error: 'FromInt' does not refer to a value
    static_assert(std::is_integral<ToInt>::value && std::is_integral<FromInt>::value, "checked_int_cast expects integers");
                                                                     ^
C:/Users/USER/src/omnetpp-5.4.1/include/omnetpp/simutil.h:53:35: note: declared here
template<typename ToInt, typename FromInt>
                                  ^
C:/Users/USER/src/omnetpp-5.4.1/include/omnetpp/simutil.h:56:80: error: no member named 'value' in the global namespace
    static_assert(std::is_integral<ToInt>::value && std::is_integral<FromInt>::value, "checked_int_cast expects integers");
                                                                             ~~^
C:/Users/USER/src/omnetpp-5.4.1/include/omnetpp/simutil.h:59:27: error: no member named 'to_string' in namespace 'std'
        intCastError(std::to_string(x), errmsg);
                     ~~~~~^
C:/Users/USER/src/omnetpp-5.4.1/include/omnetpp/simutil.h:71:24: error: no member named 'is_integral' in namespace 'std'
    static_assert(std::is_integral<ToInt>::value && std::is_integral<FromInt>::value, "checked_int_cast expects integers");
                  ~~~~~^
C:/Users/USER/src/omnetpp-5.4.1/include/omnetpp/simutil.h:71:36: error: 'ToInt' does not refer to a value
    static_assert(std::is_integral<ToInt>::value && std::is_integral<FromInt>::value, "checked_int_cast expects integers");
                                   ^
C:/Users/USER/src/omnetpp-5.4.1/include/omnetpp/simutil.h:68:19: note: declared here
template<typename ToInt, typename FromInt>
                  ^
C:/Users/USER/src/omnetpp-5.4.1/include/omnetpp/simutil.h:71:44: error: no member named 'value' in the global namespace
    static_assert(std::is_integral<ToInt>::value && std::is_integral<FromInt>::value, "checked_int_cast expects integers");
                                         ~~^
C:/Users/USER/src/omnetpp-5.4.1/include/omnetpp/simutil.h:71:58: error: no member named 'is_integral' in namespace 'std'
    static_assert(std::is_integral<ToInt>::value && std::is_integral<FromInt>::value, "checked_int_cast expects integers");
                                                    ~~~~~^
C:/Users/USER/src/omnetpp-5.4.1/include/omnetpp/simutil.h:71:70: error: 'FromInt' does not refer to a value
    static_assert(std::is_integral<ToInt>::value && std::is_integral<FromInt>::value, "checked_int_cast expects integers");
                                                                     ^
C:/Users/USER/src/omnetpp-5.4.1/include/omnetpp/simutil.h:68:35: note: declared here
template<typename ToInt, typename FromInt>
                                  ^
C:/Users/USER/src/omnetpp-5.4.1/include/omnetpp/simutil.h:71:80: error: no member named 'value' in the global namespace
    static_assert(std::is_integral<ToInt>::value && std::is_integral<FromInt>::value, "checked_int_cast expects integers");
                                                                             ~~^
C:/Users/USER/src/omnetpp-5.4.1/include/omnetpp/simutil.h:74:27: error: no member named 'to_string' in namespace 'std'
        intCastError(std::to_string(x), context, errmsg);
                     ~~~~~^
C:/Users/USER/src/omnetpp-5.4.1/include/omnetpp/simutil.h:86:24: error: no member named 'is_integral' in namespace 'std'
    static_assert(std::is_integral<ToInt>::value, "checked_int_cast expects integer template argument");
                  ~~~~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Makefile:110: out/clang-debug//node/Wlan80211.o] Error 1
jacob-mf commented 5 years ago

Greetings! and thanks a lot for your interest on the AntWMNet protocol. So sorry for late reply. I think your problems are concerned to the OMNeT++ simulator version used. This protocol was created over OMNeT++ version 3.3, and results were generated within that version. However I've updated the code to be tested on OMNeT++ version 4.21, as is written on the README.md document file. So if you are advanced user on the OMNeT++ code, guess is not difficult to adapt the code, or also you can check the protocol on version 3.3, as you wish. So sorry for any inconvenience. Cheers!