Skip to content

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

@watalou

Description

@watalou
  • 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions