In vs2008, some projects require the production library file to be called by other projects. Below are some methods for setting the output path of the library file (X. dll and X. Lib.
To set the X. dll output path, right-click the project"Property "-> connector-> GeneralAnd then in the general properties interface"Output file"Enter the output path of the X. dll file you want.
To set the output path of X. Lib, right-click the project"Property "-> connector-> advancedIn the advanced properties page"Import to Database"Enter the output path of the X. dll file.
However, when setting the output path of X. Lib, you find that if a folder in the input path does not exist, the file generation will fail and the system prompts that the file cannot be linked to the Lib library in the import/export warehouse entry path.
To solve this problem, make sure that each folder in the path you set exists. If it does not exist, create it manually.
After testing, we found that when setting the path of X. dll, if the input path does not exist even if a folder does not exist, the compiler will automatically generate it for us and will not see the setting of X. Lib.
By the way, record the other paths that need to be set by ourselves for the project:
Include header file path settings:Property-> C ++-> "add include directory" on the general interface"
Some projects need to include path settings for other X. dll and X. Lib libraries:
Path setting of X. dll library: no actual attempt is made. It will be added after the attempt is made. In addition, the X. dll file is placed in the DEBUG directory of the compiled new project, and the new program can call the. dll file.
Include the path settings of the X. Lib Library: properties-connector-General-additional library DIRECTORY options, and fill in the path containing the X. Lib library.
Contains the additional items specified to be added to the link line lib Library: properties-> connector-> input-> additional dependency options fill in the complete path of the X. dll file to be included.
Set the DLL and Lib Library output path in vs2008