Giter Site home page Giter Site logo

ns3-gym Building Error about ns3-gym HOT 2 OPEN

jesall avatar jesall commented on May 25, 2024
ns3-gym Building Error

from ns3-gym.

Comments (2)

Halefom2020 avatar Halefom2020 commented on May 25, 2024

I have the same problem for ns 3.33 with libprotoc 3.15.8
. Any solution?
In file included from /usr/include/c++/7/complex.h:36:0,
from ./ns3/matrix-based-channel-model.h:25,
from ./ns3/spectrum-module.h:17,
from ../contrib/opengym/examples/interference-pattern/mygym.h:27,
from ../contrib/opengym/examples/interference-pattern/mygym.cc:21:
./ns3/attribute-container-accessor-helper.h:52:79: error: expected ‘>’ before ‘(’ token
template <typename V, typename T, template <typename...> class U, typename ...I,
^
./ns3/attribute-container-accessor-helper.h:56:28: error: unable to find numeric literal operator ‘operator""iF’
DoMakeAccessorHelperOne (U<I...> T::*memberContainer)
^
./ns3/attribute-container-accessor-helper.h:56:28: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
In file included from ./ns3/core-module.h:16:0,
from ../contrib/opengym/examples/interference-pattern/mygym.cc:23:
./ns3/attribute-container-accessor-helper.h:56:29: error: expected parameter pack before ‘...’
DoMakeAccessorHelperOne (U<I...> T::*memberContainer)
^~~
./ns3/attribute-container-accessor-helper.h:56:32: error: template argument 1 is invalid
DoMakeAccessorHelperOne (U<I...> T::memberContainer)
^
In file included from /usr/include/c++/7/complex.h:36:0,
from ./ns3/matrix-based-channel-model.h:25,
from ./ns3/spectrum-module.h:17,
from ../contrib/opengym/examples/interference-pattern/mygym.h:27,
from ../contrib/opengym/examples/interference-pattern/mygym.cc:21:
./ns3/attribute-container-accessor-helper.h: In function ‘ns3::Ptr ns3::DoMakeAccessorHelperOne(int T::
)’:
./ns3/attribute-container-accessor-helper.h:66:24: error: unable to find numeric literal operator ‘operator""iF’
MemberContainer (U<I...> T::*memberContainer)
^
./ns3/attribute-container-accessor-helper.h:66:24: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
In file included from ./ns3/core-module.h:16:0,
from ../contrib/opengym/examples/interference-pattern/mygym.cc:23:
./ns3/attribute-container-accessor-helper.h:66:25: error: expected parameter pack before ‘...’
MemberContainer (U<I...> T::*memberContainer)
^~~
./ns3/attribute-container-accessor-helper.h:66:28: error: template argument 1 is invalid
MemberContainer (U<I...> T::*memberContainer)
^
In file included from /usr/include/c++/7/complex.h:36:0,
from ./ns3/matrix-based-channel-model.h:25,
from ./ns3/spectrum-module.h:17,
from ../contrib/opengym/examples/interference-pattern/mygym.h:27,
from ../contrib/opengym/examples/interference-pattern/mygym.cc:21:
./ns3/attribute-container-accessor-helper.h:94:7: error: unable to find numeric literal operator ‘operator""iF’
U<I...> T::*m_memberContainer; // Address of the class data member.
^
./ns3/attribute-container-accessor-helper.h:94:7: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
In file included from ./ns3/core-module.h:16:0,
from ../contrib/opengym/examples/interference-pattern/mygym.cc:23:
./ns3/attribute-container-accessor-helper.h:94:8: error: expected parameter pack before ‘...’
U<I...> T::*m_memberContainer; // Address of the class data member.
^~~
./ns3/attribute-container-accessor-helper.h:94:11: error: template argument 1 is invalid
U<I...> T::*m_memberContainer; // Address of the class data member.
^
In file included from /usr/include/c++/7/complex.h:36:0,
from ./ns3/matrix-based-channel-model.h:25,
from ./ns3/spectrum-module.h:17,
from ../contrib/opengym/examples/interference-pattern/mygym.h:27,
from ../contrib/opengym/examples/interference-pattern/mygym.cc:21:
/usr/include/boost/type_traits/integral_constant.hpp: At global scope:
/usr/include/boost/type_traits/integral_constant.hpp:33:20: error: expected identifier before ‘(’ token
template <class I, I val> struct integral_c;
^
/usr/include/boost/type_traits/integral_constant.hpp:33:20: error: expected ‘)’ before ‘extension
template <class I, I val> struct integral_c;
^
/usr/include/boost/type_traits/integral_constant.hpp:33:20: error: expected ‘>’ before ‘extension
/usr/include/boost/type_traits/integral_constant.hpp:33:20: error: expected unqualified-id before ‘)’ token
template <class I, I val> struct integral_c;
^
In file included from /usr/include/boost/type_traits/is_integral.hpp:13:0,
from /usr/include/boost/type_traits/is_arithmetic.hpp:12,
from /usr/include/boost/units/quantity.hpp:24,
from ./ns3/length.h:28,
from ./ns3/core-module.h:52,
from ../contrib/opengym/examples/interference-pattern/mygym.cc:23:
/usr/include/boost/type_traits/integral_constant.hpp:42:21: error: ‘mpl_::integral_c’ has not been declared
using ::mpl_::integral_c;
^~~~~~~~~~
/usr/include/boost/type_traits/integral_constant.hpp:65:7: error: ‘operator const int’ does not name a type
operator const mpl::integral_c<T, val>& ()const
^~~~~~~~

In file included from /usr/include/c++/7/complex.h:36:0,
from ./ns3/matrix-based-channel-model.h:25,
from ./ns3/spectrum-module.h:17,
from ../contrib/opengym/examples/interference-pattern/sim.cc:27:
/usr/local/include/google/protobuf/repeated_field.h:472:17: error: expected ‘)’ before ‘extension
template
^
/usr/local/include/google/protobuf/repeated_field.h:472:17: error: expected ‘>’ before ‘extension
/usr/local/include/google/protobuf/repeated_field.h:472:17: error: expected unqualified-id before ‘)’ token
template
^
/usr/include/zmq.hpp:212:27: error: expected nested-name-specifier before ‘(’ token
template message_t(I first, I last):
^
/usr/include/zmq.hpp:212:27: error: expected ‘)’ before ‘extension
template message_t(I first, I last):
^
/usr/include/zmq.hpp:212:27: error: expected ‘>’ before ‘extension
/usr/include/zmq.hpp:212:27: error: expected unqualified-id before ‘)’ token
template message_t(I first, I last):
^
/usr/include/zmq.hpp:612:27: error: expected nested-name-specifier before ‘(’ token
template bool send(I first, I last, int flags_=0)
^
/usr/include/zmq.hpp:612:27: error: expected ‘)’ before ‘extension
template bool send(I first, I last, int flags_=0)
^
/usr/include/zmq.hpp:612:27: error: expected ‘>’ before ‘extension
/usr/include/zmq.hpp:612:27: error: expected unqualified-id before ‘)’ token
template bool send(I first, I last, int flags_=0)
^

Waf: Leaving directory `/home/UseName/workspace/ns-3-allinone/ns-3.33/build'
Build failed
-> task in 'interference-pattern' failed with exit status 1 (run with -v to display more information)
-> task in 'interference-pattern' failed with exit status 1 (run with -v to display more information)

from ns3-gym.

yanzbb avatar yanzbb commented on May 25, 2024

Hi @Halefom2020 Hi @jesall ,
I am currently facing the similar problem with a updated version.
Have you found any solutions, by any chance ?
Thanks in advance for your reply.
Regards

from ns3-gym.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.