signetlabdei / ns3-mmwave-iab

IAB feature for the ns-3 mmWave module
GNU General Public License v2.0
25 stars 23 forks source link

Build error #2

Closed prabhujana closed 4 years ago

prabhujana commented 4 years ago

In file included from src/applications/bindings/ns3module.cc:1:0: src/applications/bindings/ns3module.h: In constructor ‘PyNs3UdpServerPythonHelper::PyNs3UdpServerPythonHelper(const ns3::UdpServer&)’: src/applications/bindings/ns3module.h:4789:46: error: use of deleted function ‘ns3::UdpServer::UdpServer(const ns3::UdpServer&)’ : ns3::UdpServer(arg0), m_pyself(NULL) ^ In file included from ./ns3/udp-client-server-helper.h:28:0, from ./ns3/applications-module.h:19, from src/applications/bindings/ns3module.h:82, from src/applications/bindings/ns3module.cc:1: ./ns3/udp-server.h:49:7: note: ‘ns3::UdpServer::UdpServer(const ns3::UdpServer&)’ is implicitly deleted because the default definition would be ill-formed: class UdpServer : public Application ^~~~~ ./ns3/udp-server.h:49:7: error: use of deleted function ‘std::basic_ofstream<_CharT, _Traits>::basic_ofstream(const std::basic_ofstream<_CharT, _Traits>&) [with _CharT = char; _Traits = std::char_traits]’ In file included from ./ns3/udp-server.h:32:0, from ./ns3/udp-client-server-helper.h:28, from ./ns3/applications-module.h:19, from src/applications/bindings/ns3module.h:82, from src/applications/bindings/ns3module.cc:1: /usr/include/c++/7/fstream:723:7: note: declared here basic_ofstream(const basic_ofstream&) = delete; ^~~~~~ src/applications/bindings/ns3module.cc: In function ‘int _wrap_PyNs3UdpServer__tp_init0(PyNs3UdpServer, PyObject, PyObject*, PyObject*)’: src/applications/bindings/ns3module.cc:9020:71: error: use of deleted function ‘ns3::UdpServer::UdpServer(const ns3::UdpServer&)’ self->obj = new ns3::UdpServer(((PyNs3UdpServer ) arg0)->obj); ^ src/applications/bindings/ns3module.cc: In function ‘PyObject _wrap_PyNs3UdpServercopy__(PyNs3UdpServer)’: src/applications/bindings/ns3module.cc:9165:49: error: use of deleted function ‘ns3::UdpServer::UdpServer(const ns3::UdpServer&)’ py_copy->obj = new ns3::UdpServer(self->obj);

mychele commented 4 years ago

Hi, which commands are you using to clone the repo and build? Can you try to disable the python bindings when compiling? Thanks, Michele

Il giorno mar 18 feb 2020 alle ore 04:48 prabhujana < notifications@github.com> ha scritto:

In file included from src/applications/bindings/ns3module.cc:1:0: src/applications/bindings/ns3module.h: In constructor ‘PyNs3UdpServerPythonHelper::PyNs3UdpServerPythonHelper(const ns3::UdpServer&)’: src/applications/bindings/ns3module.h:4789:46: error: use of deleted function ‘ns3::UdpServer::UdpServer(const ns3::UdpServer&)’ : ns3::UdpServer(arg0), m_pyself(NULL) ^ In file included from ./ns3/udp-client-server-helper.h:28:0, from ./ns3/applications-module.h:19, from src/applications/bindings/ns3module.h:82, from src/applications/bindings/ns3module.cc:1: ./ns3/udp-server.h:49:7: note: ‘ns3::UdpServer::UdpServer(const ns3::UdpServer&)’ is implicitly deleted because the default definition would be ill-formed: class UdpServer : public Application ^~~~~ ./ns3/udp-server.h:49:7: error: use of deleted function ‘std::basic_ofstream<_CharT, _Traits>::basic_ofstream(const std::basic_ofstream<_CharT, _Traits>&) [with _CharT = char; _Traits = std::char_traits]’ In file included from ./ns3/udp-server.h:32:0, from ./ns3/udp-client-server-helper.h:28, from ./ns3/applications-module.h:19, from src/applications/bindings/ns3module.h:82, from src/applications/bindings/ns3module.cc:1: /usr/include/c++/7/fstream:723:7: note: declared here basic_ofstream(const basic_ofstream&) = delete; ^~~~~~ src/applications/bindings/ns3module.cc: In function ‘int

wrap_PyNs3UdpServer__tp_init__0(PyNs3UdpServer, PyObject, PyObject, PyObject*)’: src/applications/bindings/ns3module.cc:9020:71: error: use of deleted function ‘ns3::UdpServer::UdpServer(const ns3::UdpServer&)’ self->obj = new ns3::UdpServer(((PyNs3UdpServer ) arg0)->obj); ^ src/applications/bindings/ns3module.cc: In function ‘PyObject wrap_PyNs3UdpServer__copy(PyNs3UdpServer)’: src/applications/bindings/ns3module.cc:9165:49: error: use of deleted function ‘ns3::UdpServer::UdpServer(const ns3::UdpServer&)’ py_copy->obj = new ns3::UdpServer(*self->obj);

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/signetlabdei/ns3-mmwave-iab/issues/2?email_source=notifications&email_token=ABWVXZMVLWMTK5NWE4P6HQDRDNLAHA5CNFSM4KW4N7Q2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IOGBYMQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABWVXZJUJPLPS6SD6YGN4I3RDNLAHANCNFSM4KW4N7QQ .

-- Michele Polese

Postdoctoral Researcher Dept. of Information Engineering (DEI) - SIGNET Research Group University of Padova Via Gradenigo 6/B, 35131 Padova (Italy)

email: michele@polese.io web: polese.io - mmwave.dei.unipd.it

prabhujana commented 4 years ago

Michele, I just did git clone. If I disable python bindings, I can build it. However, I want to integrate this module with another framework based on Python.

I do not have this issue with ns3-mmwave module even if I build it with python bindings.

tommasozugno commented 4 years ago

Hi, currently python bindings do not work with this module. You should try to generate them using the procedure described in the ns-3 documentation (https://www.nsnam.org/wiki/Python_bindings).

Best, Tommaso