LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices

Reply
 
Search this Thread
Old 06-05-2013, 05:09 AM   #1
aryaayu
LQ Newbie
 
Registered: Jun 2013
Posts: 7

Rep: Reputation: Disabled
C++ -link with TCL


How to link C++ file to TCL script?
 
Old 06-05-2013, 07:00 AM   #2
pan64
Senior Member
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 4,508

Rep: Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221
probably this helps: http://wiki.tcl.tk/13040 (or at least offers related links)
 
1 members found this post helpful.
Old 06-05-2013, 12:42 PM   #3
aryaayu
LQ Newbie
 
Registered: Jun 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
can you please give example for implementing an algorithm in C++ for ns2 with an example?
 
Old 06-06-2013, 12:24 AM   #4
pan64
Senior Member
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 4,508

Rep: Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221
just google and find a suitable one:
http://tagus.inesc-id.pt/~pestrela/ns2/ns2_tips.html
http://nile.wpi.edu/NS/
http://wsnlab.ir/how-to-install-cygwin-ns-2-in-windows/
 
Old 06-25-2013, 01:24 AM   #5
aryaayu
LQ Newbie
 
Registered: Jun 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thank You. Another one doubt...While simulating in NS2, nodes color is green initially. But after certain seconds it automatically turns to yellow color and after sometime it turns to red color.I didnt give any explicit statement for color change.How do I solve this? Please help..
 
Old 06-25-2013, 04:58 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
# 5 .

I'd guess that some default colors are used, unless you specify.

Google .. nam colors ..
http://www.google.com/url?sa=t&rct=j...48293060,d.d2k

http://man.cx/nam%281%29

And probably : nam-1.1x/edu/

And .. $ grep color ns-2.xx/tcl/ex/*

-
 
1 members found this post helpful.
Old 06-25-2013, 10:12 AM   #7
aryaayu
LQ Newbie
 
Registered: Jun 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thank You. I ll try
 
Old 07-01-2013, 11:07 PM   #8
aryaayu
LQ Newbie
 
Registered: Jun 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
When I try in Ns2, it shows the following error. I dont know how to trace out that line number. I have attached that error snapshot.Plz help me
Attached Images
File Type: jpg sam.jpg (34.1 KB, 4 views)
 
  


Reply

Tags
nam, ns2-c++-tcl


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
Little error (not harmful) exists in tcl.SlackBuild (source slackbuilds for Tcl) blancamolinos Slackware 3 01-14-2013 05:46 AM
how to link tcl file and C++ files together and run in ns2? tootz Linux - Software 3 07-25-2012 03:42 PM
how to link mobility file with tcl script naren123.k Programming 0 04-26-2011 04:37 AM
Cannot find Tcl dll ( Perl's Tcl bridge ) Xyem Linux - Software 2 08-08-2006 09:45 AM
Compiling and Link Errors With Regex.h from TCL 8.4.11 rundarm Slackware 0 03-01-2006 11:25 PM


All times are GMT -5. The time now is 11:42 AM.

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