Troubleshooting
Problem
"LNK1181:cannot open input file..." error when including external libraries
Resolving The Problem
SYMPTOM
When building a Rose RealTime executable, the following error is encountered during the linking phase of the build:
LINK : fatal error LNK1181: cannot open input file "xxx.lib" (where "xxx" is the external library name).
CAUSE
The aforementioned error occurs when including a library in a Rose RealTime component and the compiler is unable to locate the library.
RESOLUTION
To resolve this problem, ensure that the paths to any external libraries to be included in your Rose RealTime component are defined in the "UserLibraries" field of the C++ Executable tab of the Component Specification. We recommend using virtual path maps to do this.
To define a virtual path map in Rose RealTime:
1. Click File > Edit Path Map to open the Virtual Path Map dialog.
2. Type the name of the new virtual path in the Symbol field (for example, "EXT_LIB"), but omit the leading "$" character.
3. In the Actual Path field, enter the location of the external libraries to be included.
4. Click Add. A new virtual path map symbol, $EXT_LIB, has been defined.
To use a virtual path map to include an external library in a Rose RealTime component:
1. Open the Component Specification and go to the C++ Executable tab.
2. In the UserLibraries field, use the pre-defined virtual path map symbol followed by the library name to add the external library to the component. For example, using the virtual path map defined above, the inclusion statement would look like this: $EXT_LIB/mylib.lib (where "mylib" is the actual library name).
3. Apply the change and Save your model.
For more information on using virtual path maps, please refer to the following section in the Rose RealTime on-line help:
Team Development > Storage of Model Data > Virtual Path Maps
Note: If the UserLibraries text above is required for all components in a project, then a project specific "Property Set" can be created. See Toolset Guide > Customizing the Toolset > Managing Model Properties.
[{"Product":{"code":"SSSHKL","label":"Rational Rose RealTime"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"--","Platform":[{"code":"PF033","label":"Windows"}],"Version":"2002.05.20.468.000","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]
Historical Number
154149817
Was this topic helpful?
Document Information
More support for:
Rational Rose RealTime
Software version:
2002.05.20.468.000
Operating system(s):
Windows
Document number:
328739
Modified date:
16 June 2018
UID
swg21131972