Compiling the debug ns3 in eclipse

Source: Internet
Author: User

1 First import the NS3 project into Eclipsethen put the above NS3 follow the above tips to import success. then you can run
./WAF Configure
2 Configuring the C + + Build
Right-click the project, select Properties, modify in Build (C + + build), build command Select the path where the WAF is located, such as my: ${workspace_loc:/ns-allinone-3.25/ NS-3.25/WAF}, where: Workspace_loc refers to the project's path; The build directory selects the corresponding directory, such as my: ${workspace_loc:/ns-allinone-3.25/ns-3.25/ Build} In the Behavior tab entry, the check boxes in the Workbench Build behavior are selected, the first two values are empty, the last one is clean, and the last point is OK to save. At this point you can click Build project to compile, the time may be longer
3 Debug

Debug: Right-click Project Properties, select Debug Configuration (Run Debug settings), create a new one, select project (the file you just generated). Environment settings (environment), new, variable name (name) is: Ld_library_path, variable value: ${workspace_loc:/ns-allinone-3.25/ns-3.25}/ Build, which is the path to build, or it will not be possible to find the ***.so 4. Externel Tools ConfigurationsRun->external->externel Tools configurations, right-click New in program and set ${workspace_loc:/in location NS-ALLINONE-3.25/NS-3.25/WAF}, set ${workspace_loc:/ns-allinone-3.25/ns-3.25} In working directory, argument set to--run " ${string_prompt} ", click Run, then enter the corresponding compiled program name, you can complete the simulation, the results will be displayed in the console. Note: Remember to run when you are runningthen enter the corresponding cc file to run. Reference Links:
http://blog.csdn.net/xiaominthere/article/details/17968375
http://blog.csdn.net/zy416548283/article/details/22735447

Compiling the debug ns3 in eclipse

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.