ns3/common-module.h: No such file or directory

4,779 views
Skip to first unread message

leandros

unread,
Feb 11, 2012, 1:09:20 PM2/11/12
to ns-3-users
i am trying to run a program and having the following error message

ns3/common-module.h: No such file or directory

what is the problem??
hoe do i fix it?

Thomas Makriniotis

unread,
Feb 11, 2012, 2:57:13 PM2/11/12
to ns-3-...@googlegroups.com
I suppose that you get this message when you're trying to run a
simulation script . It means that probably you have declared a module
that does not exist as a file.

Any more info about the problem?

Thomas

Μαγλαράς Λέανδρος

unread,
Feb 11, 2012, 3:24:19 PM2/11/12
to ns-3-...@googlegroups.com
are common-module, node-module.h,helper-module.h,  standard modules from ns3 or do i have to download it from somewhere?

I am trying to run highway mobility code according to
http://www.cs.odu.edu/~mweigle/CS795-F10/Ns3
and i am getting errors about these modules.
Is it because i have ns3.12 and not ns3.9?


2012/2/11 Thomas Makriniotis <mayro...@gmail.com>


--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To post to this group, send email to ns-3-...@googlegroups.com.
To unsubscribe from this group, send email to ns-3-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.


Thomas Makriniotis

unread,
Feb 11, 2012, 3:40:49 PM2/11/12
to ns-3-...@googlegroups.com
On 02/11/2012 10:24 PM, Μαγλαράς Λέανδρος wrote:
are common-module, node-module.h,helper-module.h,  standard modules from ns3 or do i have to download it from somewhere?

I am trying to run highway mobility code according to
http://www.cs.odu.edu/~mweigle/CS795-F10/Ns3
and i am getting errors about these modules.
Is it because i have ns3.12 and not ns3.9?


2012/2/11 Thomas Makriniotis <mayro...@gmail.com>
On 02/11/2012 08:09 PM, leandros wrote:
i am trying to run a program and having the following error message

ns3/common-module.h: No such file or directory

what is the problem??
hoe do i fix it?

 
I suppose that you get this message when you're trying to run a simulation script . It means that probably you have declared a module that does not exist as a file.

Any more info about the problem?

Thomas


--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To post to this group, send email to ns-3-...@googlegroups.com.
To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.

--
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To post to this group, send email to ns-3-...@googlegroups.com.
To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.
Well, these are standard modules of ns-3. It's kinda strange you get these errors. In general, you have to follow this procedure: download and compile the latest version of ns-3 (current stable 3.13) according to the rules described in the tutorial, download (or write) the code you want to simulate, copy the script in /scratch directory, and then build and run it. I suggest you make a clean installation of ns-3 (I'm working on 3.13, but for now, it doesn't really matters) and try to simulate your code in that environment.

Thomas

Tommaso Pecorella

unread,
Feb 11, 2012, 8:13:36 PM2/11/12
to ns-3-users
There's no common-module.h in ns-3. Neither a node-module.h or helper-
module.h, so I am not surprised you're getting errors.

Ok, you wanna a longer answer, isn't it ? Oook.

Those modules have been removed, I don't even remember when, but in
one of the past releases. The modules have been reorganized logically
according to their functionalities, so, for examples, the csma helpers
are loaded with the csma module, instead of requiring a separate
module. Handy, isn't it ?

The drawback is that "old" instructions for ns-3 (let's say, ns-3.9)
have to be updated. Copy.pasting the examples found in Internet will
not lead to success.

So, you have two alternatives. One dumb and one smart:
- update the simulation scripts so they'll work in ns-3.13 or ns-3-dev
- use the old ns-3 version

I'll not tell which one is the dumb one, it should be pretty clear.

Cheers,

T.

Mitch Watrous

unread,
Feb 13, 2012, 3:02:56 PM2/13/12
to ns-3-users
Hi.

Starting with version 3.11, ns-3 went to a modular directory
structure.

Most modules have the same name as before.

These module names were changed:

- core + simulator were merged into core
- common + node were merged into network
- internet-stack became internet
- helper module was removed

The following chapter in the ns-3 Manual shows how modules are
organized in the new modular directory structure:

http://www.nsnam.org/docs/release/3.13/manual/html/new-modules.html

Mitch

Larissa Eglem

unread,
Apr 20, 2012, 9:27:50 AM4/20/12
to ns-3-...@googlegroups.com
Thank you!!!!!!!
Reply all
Reply to author
Forward
0 new messages