gpt4 book ai didi

c++ - ns3中的构建错误,退出状态为1 :

转载 作者:行者123 更新时间:2023-12-02 10:53:12 27 4
gpt4 key购买 nike

成功安装ns3后,我尝试使用暂存文件夹中的新文件(wifi-dl-ofdma.cc)再次对其进行编译。

当我尝试使用-

./waf --run scratch/wifi-dl-ofdma(C++文件无需扩展名)

构建终止于此-

**构建失败
->“wifi-dl-ofdma”中的任务失败(退出状态1):
{task 139886228468752:cxx wifi-dl-ofdma.cc-> wifi-dl-ofdma.cc.3.o}
['/usr/bin/g++','-O0','-ggdb','-g3','-Wall','-Werror','-std = c++ 11','-Wno-error = deprecated-declarations”,“-fstrict-aliasing”,“-Wstrict-aliasing”,“-pthread”,“-pthread”,“-I。”,“-I ..”,“-I/usr/include”/gtk-2.0”、“-I/usr/lib/x86_64-linux-gnu/gtk-2.0/include”、“-I/usr/include/gio-unix-2.0”、“-I/usr/include/cairo','-I/usr/include/pango-1.0','-I/usr/include/atk-1.0','-I/usr/include/pixman-1','-I/usr/include/libpng12”,“-I/usr/include/gdk-pixbuf-2.0”,“-I/usr/include/harfbuzz”,“-I/usr/include/glib-2.0”,“-I/usr/lib/x86_64-linux-gnu/glib-2.0/include','-I/usr/include/freetype2','-DNS3_BUILD_PROFILE_DEBUG','-DNS3_ASSERT_ENABLE','-DNS3_LOG_ENABLE','-DHAVE_SYS_IOCTL_H = 1','-DHAVE = IF_NETS_ 1','-DHAVE_NET_ETHERNET_H = 1','-DHAVE_PACKET_H = 1','-DHAVE_IF_TUN_H = 1','-DHAVE_GTK2 = 1','../scratch/wifi-dl-ofdma.cc','-c' ,'-o','/home/deepak/ns-allinone-3.27/ns-3.27/build/scratch/wifi-dl-ofdma.cc.3.o'] **

我无法理解该错误。

最佳答案

由于您尚未提到ns3和gcc版本。当我尝试使用新的gcc编译器构建旧版本的ns3(在Ubuntu 18上为ns3.26)时,我遇到了相同的问题。我使用以下命令解决了此问题:

CXXFLAGS="-Wall" ./waf configure
./waf -vv

您可以找到有关 this link的详细信息

关于c++ - ns3中的构建错误,退出状态为1 :,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60426596/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com