LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-07-2013, 03:18 AM   #1
neha nalini
LQ Newbie
 
Registered: Feb 2013
Posts: 1

Rep: Reputation: Disabled
C++ using NS2


Hi, I'm doing a project in ad hoc, in NS2 for simultaion.I need help in simulating C++ codes. Can u say me how to run c++ files using NS2?
I am using ubuntu 12.04 and NS 2.35.
 
Old 02-07-2013, 08:56 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,553

Rep: Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946
Quote:
Originally Posted by neha nalini View Post
Hi, I'm doing a project in ad hoc, in NS2 for simultaion.I need help in simulating C++ codes. Can u say me how to run c++ files using NS2?
I am using ubuntu 12.04 and NS 2.35.
Spell out your words, please. And putting "how to run c++ files using ns2" into Google pulls up over 220 THOUSAND results...trying to look up answers is the best first step to any problem.
http://www.gidforums.com/t-13571.html
http://www.slideshare.net/TBear76/20100317-adding-cc
 
Old 02-07-2013, 11:15 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.
Quote:
how to run c++ files using NS2 ?
The default way is to compile file.cc into the executable 'ns'.

That's also the way you are building ns2 in the first place :
By compiling the 380 files.cc into one executable : ns.
After the build : All files.cc can actually be deleted.
No more use for those.

-
 
  


Reply


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
want to install ns2.29.3 along with mannasim patch for ns2.29 jeevanpinto Linux - Software 4 10-02-2013 12:09 AM
how to install both ns2.28 and ns2.34 versions on ubuntu 10.04? popoaung Linux - Software 3 06-10-2013 04:52 PM
Differences between LEACH results on ns2.1b5 and ns2.35 deepa_2111 Linux - Software 15 05-16-2013 05:53 PM
i am using ubuntu as os. for NS2 to implement a routing protocol in ns2. sujovasu Programming 1 07-27-2010 01:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:32 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration