Discussion:
Including Kodo in ns-3 - Linking Problem
Arash Daneshmand
2018-11-30 11:23:28 UTC
Permalink
Hello ns-3 Experts,

I'm trying to use a library called KODO for ns-3 in my program.
I have included the KODO Library using : #include <kodo_rlnc/coders.hpp>
The code is compiled successfully but in the Linking process I get this
error:


Waf: Entering directory `/home/icic/ndnsim/ns-3/build'
[1755/3038] Compiling src/ndnSIM/apps/ndn-producer.cpp
[2938/3038] Linking build/libns3-dev-ndnSIM-debug.so
[2984/3038] Linking
build/src/ndnSIM/examples/ns3-dev-ndn-different-strategy-per-prefix-debug
./libns3-dev-ndnSIM-debug.so: undefined reference to
`kodo_rlnc::encoder::factory::factory(fifi::api::field, unsigned int,
unsigned int)'
./libns3-dev-ndnSIM-debug.so: undefined reference to `vtable for
kodo_rlnc::encoder::factory'
collect2: error: ld returned 1 exit status

Waf: Leaving directory `/home/icic/ndnsim/ns-3/build'
Build failed
-> task in 'ndn-different-strategy-per-prefix' failed (exit status 1):



I get the feeling that this is a wscript related kind of error and "waf" is
not getting the "kodo_rlnc" library. I Tried editing the wscript file using
instructions from this link :
https://www.nsnam.org/wiki/HOWTO_use_ns-3_with_other_libraries
but it didn't work. How can I solve this error?
The wscript file is attached.

Thank You in Advance
Cheers
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+***@googlegroups.com.
To post to this group, send email to ns-3-***@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
Loading...