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