Linking C++ Library and Object Files
When you add a
.obj file to your project, C++ attempts by default to locate the file by using the library search path (set on the Project > Options > Directories and Conditionals dialog box). You can use the Link by Name Only context-menu command on the Project Manager to specify that C++ locate the file by the file's own explicit file path.
To specify that a file be linked by its explicit file path
- In the Project Manager, right-click the
- In the context menu, uncheck Link by Name Only.
- When Link by Name Only is checked, the file is located by the library search paths that you have set.
- When Link by Name Only is unchecked, the file is located by its own explicit file path.