Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

How to use NS3's user-defined class in DCE? #140

Open
watalou opened this issue Dec 23, 2022 · 0 comments
Open

How to use NS3's user-defined class in DCE? #140

watalou opened this issue Dec 23, 2022 · 0 comments

Comments

@watalou
Copy link

watalou commented Dec 23, 2022

  • ns3 version : 3.34
  • DCE version: 1.11
  • Operating system/version (lsb_release -a): Ubuntu 16.04.7 LTS
  • Libc version (ldd -v): ldd (Ubuntu GLIBC 2.23-0ubuntu11.3) 2.23
  • compiler version : 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12)

**Description of the problem **

I've defined some helper and model class in NS3, and I put these files in directory ./bake/source/ns-3.34/contrib, and I can successfully run scripts using aforementioned helper and model class under NS3 (i.e., under directory ./bake/source/ns-3.34, run ./waf --run mytest, and mytest.cc is my demo script to test the defined class).

However, when I write a script dcetest.cc in DCE (I put the script under directory ./bake/source/ns-3-dce/myscripts/ns-3-dce-quagga/example), and run ./waf --run dcetest under directory ./bake/source/ns-3-dce/, it reports cannot find the user-defined class (located in ../bake/source/ns-3.34/contrib).

I find the user-defined class has added into the directories ./bake/build/include/ns3.34/ns3/ and** ./bake/source/ns-3.34/build/ns3**, but not in the directory ./bake/source/ns-3-dce/build/include/ns3.

I've also tried to copy the user-defined classes' header files into the directory ./bake/source/ns-3-dce/build/include/ns3, and exported the directory (./bake/build/include/ns3.34/ns3/) to the PATH env variable, both attempts are failed.

So how to use NS3's user-defined class in DCE? Thanks a lot!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant