Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-12-2008, 05:08 AM   #1
LQ Newbie
Registered: Dec 2008
Posts: 14

Rep: Reputation: 0
Angry Is there any restriction in compiling the c++ files in ns2 library?

I got the following errors while executing the that was installed with the simulator. I have tried by setting paths that did not work too. But these errors are in the standard files provided by the simulator so I am little bit confused whether we are able to compile any new c++ file or not, since it is not compiling the existing c++ file which has been already compiled for the object code generation.

[Shyan@localhost dsdv]$ c++
/usr/src/ns-allinone-2.33/tclcl-1.19/tclcl-mappings.h: In static member function ‘static int TclObjectHelper<T>::dispatch_(void*, Tcl_Interp*, int, char**)’:

/usr/src/ns-allinone-2.33/tclcl-1.19/tclcl-mappings.h:50: error: expected unqualified-id before ‘=’ token

/usr/src/ns-allinone-2.33/tclcl-1.19/tclcl-mappings.h:50: error: abstract declarator ‘Tcl&’ used as declaration

/usr/src/ns-allinone-2.33/tclcl-1.19/tclcl-mappings.h:51: error: expected primary-expression before ‘*’ token

/usr/src/ns-allinone-2.33/tclcl-1.19/tclcl-mappings.h:51: error: expected primary-expression before ‘)’ token

/usr/src/ns-allinone-2.33/tclcl-1.19/tclcl-mappings.h:56: error: expected primary-expression before ‘.’ token

/usr/src/ns-allinone-2.33/ns-2.33/common/packet.h: At global scope:

/usr/src/ns-allinone-2.33/ns-2.33/common/packet.h:582: error: expected identifier before numeric constant

/usr/src/ns-allinone-2.33/ns-2.33/common/packet.h:582: error: expected `}' before numeric constant

/usr/src/ns-allinone-2.33/ns-2.33/common/packet.h:582: error: expected unqualified-id before numeric constant

/usr/src/ns-allinone-2.33/ns-2.33/common/packet.h:591: error: ‘dir_t’ does not name a type

/usr/src/ns-allinone-2.33/ns-2.33/common/packet.h:640: error: expected initializer before ‘&’ token

/usr/src/ns-allinone-2.33/ns-2.33/common/packet.h:650: error: expected declaration before ‘}’ token
Old 12-12-2008, 06:00 AM   #2
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,698

Rep: Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291Reputation: 3291
'cd ns-allinone-2.33/ns-2.33/' .. './configure' .. 'make'
will compile the missing things in 2 minutes, dsdv as the last one.

Never thought of it before, I am using a different setup =
ns-2.33 + nam-1.13 , installed to /usr/local , then no new
LD_LIBRARY_PATH has to be made.

Good Luck !

Last edited by knudfl; 12-12-2008 at 06:14 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling ns2 with openssl libraries zWaR Programming 48 02-06-2015 01:47 AM
Installing NS2.26 (Network Simulator) Error:can't find X library linuxsimulationboy Debian 3 07-13-2008 02:41 AM
Compiling library files into another library file. knobby67 Programming 3 04-10-2007 02:07 PM
problem with the location of some library files on Slackware 10.2 while compiling atk boris-78 Linux - Newbie 4 10-10-2006 01:13 PM
Compiling ns2 on FC4 sita Linux - Software 0 11-04-2005 02:25 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:16 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration