Getting an error, LNK1181:CANNOT OPEN INPUT FILE SIM.LIB, when attempting to run a simulation.

Solution Number:
S20272
Last Modified:
2013-07-03
Issue

Getting an error, LNK1181:CANNOT OPEN INPUT FILE SIM.LIB, when attempting to run a simulation.

Solution

The error is predominantly caused by incorrect environment setting. The installation process of OPNET attempts to update the System Environment variable with the paths required by OPNET.  This way this environment variable will be available to all the users who log on to that machine.  At times, it is possible that the user might have a similar environment variable is the User Variable area, and this set of variables may not be prepended or appended with a %lib%.

The Following are the required LIB system variable settings for OPNET.
lib=<opnet_dir>\5.1.D\sys\pc_intel_win32\lib;... where opnet_dir specifies the directory where OPNET has been installed  e.g.,  D:\OPNET.

  1.  Please make sure that these variables are present in the System variables section of your machine. You can view the system variables through

Start->settings->Control Panel->System.

  1. Open a command shell (cmd.exe) and at the command-line, please do the following:

c:\> echo %lib%
Examine the output of the above command. <opnet_dir>\5.1.D\sys\pc_intel_win32\lib should be one of the components.

  1. Please make sure that you have read/write access to the file.

c:\> attrib <opnet_dir>\5.1.D\sys\pc_intel_win32\lib\sim.lib
You should see some symbols (like 'A' or 'R' ) on the left followed by the full path to the lib file

Environment

DES Kernel , Error Messages/Logs, OPNET Modeling and Simulation, OPNET Modeler

Attachments
NOTICE: Riverbed® product names have changed. Please refer to the Product List for a complete list of product names.
Can't find an answer? Create a case