Linking C++ Library and Object Files

From RAD Studio
Jump to: navigation, search

Go Up to How To Compile and Build Applications

When you add a .lib or .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

  1. In the Project Manager, right-click the .lib or .obj file.
  2. 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.

See Also