Omnet ++ installation and various architecture debugging experiences in Windows

Source: Internet
Author: User

The following describes how to use omnet ++ integrated in the msvc6.0 environment on Windows.

1. Install omnet

1. Go to the omnet official website to download the installation program under the Windows platform, the current version is omnetpp-3.2p1-win32;

Download ghostscript,

URL: http://sourceforge.net/project/showfiles.php? Group_id = 1897 & release_id = 202607

2. Install VC. Check "register environment variable" when installing VC"

3. Install ghostscript

4. Install omnet. When the installation progress is reached, the installer will prompt that the gswin 32c.exemust be provided. The gswin32c.exe required by omnetwill be in the bin folder of the ghostscript installation directory.

Note:

The installation path of omnet ++ cannot contain spaces or Chinese characters. Only English characters and numbers are allowed.

Ii. Use of omnet ++ gned

Gned is a network discription language editing and compilation tool used to describe the topology of a simulated network. For the syntax structure of Ned, see omnet manual. See the gnedapplication documentation in this document.

When I learned about omnet, I naturally downloaded a lot of shared architectures on the network, but unfortunately I cannot fully understand them. Let's debug them first. Generally, because the running environment is different, many source codes cannot be compiled directly. Below are some suggestions. change the statement that contains many non-library files to "" To facilitate execution and search for header files. some codes use the STL standard components of VC but do not contain the corresponding library, so that an inexplicable error occurs. 3 It is recommended to add the corresponding header file to the header file.

Using namespace STD;

3. do not contain Chinese or other characters in the file path. Although errors may not occur, they cannot be completely correct, so avoid 4. in a project with a large number of Ned files, the corresponding import Ned file cannot be found during compilation, resulting in various searches, before compilation, you can open each Ned file separately (not in Notepad mode) and open it under omnet. This will automatically identify the file and remind you to find the corresponding source file. In this way, you do not need to search one by one during compilation.

 

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.