Getting an error, LNK1181:CANNOT OPEN INPUT FILE SIM.LIB, when attempting to run a simulation.
Getting an error, LNK1181:CANNOT OPEN INPUT FILE SIM.LIB, when attempting to run a simulation.
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.
Start->settings->Control Panel->System.
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.
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
DES Kernel , Error Messages/Logs, OPNET Modeling and Simulation, OPNET Modeler