How to Set Inc, Lib, and DLL paths in VC

Source: Internet
Author: User

When a project is large, appropriate path settings can organize the dynamic link libraries and projects of different modules.

The settings in VC are as follows:

Include include path settings: Project-> setting-> C/C ++-> Preprocessor: Additional include directories:..././INC
DLL output path settings: Project-> setting-> link-> General: output file name:.../../bin/modcould. dll
PDB output path settings: Project-> setting-> link-> customize: Program database name:.../../bin/modcould. PDB
Lib output path setting: it should be in project-> setting-> link-> output, but cannot be found, so you can change project option:/implib :".. /.. /lib/modwould. lib "to implement

Generally, put the header files of all dynamic link libraries under the INC directory, and put the CPP file under the src directory to generate files and PDB files (convenient access to dynamic link library debugging) put it in the bin directory. This allows different projects to call the same dynamic link library and update the dynamic link library in real time.

 

PS:
Definition of dllimport static data member not allowed
It may be that the file is already contained, and the variable with the same name has been defined in the Linked Library.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.