LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   C++ using NS2 (https://www.linuxquestions.org/questions/linux-software-2/c-using-ns2-4175448984/)

neha nalini 02-07-2013 03:18 AM

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.

TB0ne 02-07-2013 08:56 AM

Quote:

Originally Posted by neha nalini (Post 4886075)
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

knudfl 02-07-2013 11:15 AM

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.

-


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