I am new to NS3.
I am trying to use #pragma of openmp in very first program.
I couldn't solve the problem.
I have spent maximum time in this to solve problem. But I couldn't . Any help will be much appreciated. Thanks in advance.
s-3.24.1$ CCFLAGS_EXTRA="-fopenmp" ./waf build scratch/first
Waf: Entering directory `/home/dhawasks/Project/ns3/ns-allinone-3.24.1/ns-3.24.1/build'
[2419/2481] Linking build/scratch/first
scratch/first.cc.1.o: In function `main':
first.cc:(.text+0xdd): undefined reference to `GOMP_parallel_start'
first.cc:(.text+0xee): undefined reference to `GOMP_parallel_end'
collect2: error: ld returned 1 exit status
Waf: Leaving directory `/home/dhawasks/Project/ns3/ns-allinone-3.24.1/ns-3.24.1/build'
Build failed
-> task in 'first' failed (exit status 1):
{task 3062160076L: cxxprogram first.cc.1.o -> first}
['/usr/bin/g++', '-pthread', '-pthread', 'scratch/first.cc.1.o', '-o', '/home/dhawasks/Project/ns3/ns-allinone-3.24.1/ns-3.24.1/build/scratch/first', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-Wl,--no-as-needed', '-L.', '-lns3.24.1-test-debug', '-lns3.24.1-lr-wpan-debug', '-lns3.24.1-netanim-debug', '-lns3.24.1-lte-debug', '-lns3.24.1-spectrum-debug', '-lns3.24.1-antenna-debug', '-lns3.24.1-aodv-debug', '-lns3.24.1-dsr-debug', '-lns3.24.1-mesh-debug', '-lns3.24.1-visualizer-debug', '-lns3.24.1-wave-debug', '-lns3.24.1-wifi-debug', '-lns3.24.1-applications-debug', '-lns3.24.1-csma-layout-debug', '-lns3.24.1-dsdv-debug', '-lns3.24.1-flow-monitor-debug', '-lns3.24.1-wimax-debug', '-lns3.24.1-nix-vector-routing-debug', '-lns3.24.1-olsr-debug', '-lns3.24.1-point-to-point-layout-debug', '-lns3.24.1-sixlowpan-debug', '-lns3.24.1-tap-bridge-debug', '-lns3.24.1-internet-debug', '-lns3.24.1-bridge-debug', '-lns3.24.1-point-to-point-debug', '-lns3.24.1-mpi-debug', '-lns3.24.1-buildings-debug', '-lns3.24.1-config-store-debug', '-lns3.24.1-propagation-debug', '-lns3.24.1-uan-debug', '-lns3.24.1-mobility-debug', '-lns3.24.1-energy-debug', '-lns3.24.1-csma-debug', '-lns3.24.1-fd-net-device-debug', '-lns3.24.1-virtual-net-device-debug', '-lns3.24.1-topology-read-debug', '-lns3.24.1-network-debug', '-lns3.24.1-stats-debug', '-lns3.24.1-core-debug', '-lrt', '-lgsl', '-lgslcblas', '-lm', '-lsqlite3', '-lgtk-x11-2.0', '-lgdk-x11-2.0', '-latk-1.0', '-lgio-2.0', '-lpangoft2-1.0', '-lpangocairo-1.0', '-lgdk_pixbuf-2.0', '-lcairo', '-lpango-1.0', '-lfontconfig', '-lgobject-2.0', '-lglib-2.0', '-lfreetype', '-lxml2']
dhawasks@ubuntu:~/Project/ns3/ns-allinone-3.24.1/ns-3.24.1$