Why doesn't a C++ static library project have linker settings?

前端 未结 3 843
Happy的楠姐
Happy的楠姐 2021-02-20 03:13

Revealing my ignorance: Why doesn\'t a static library project (in Visual Studio in my case) have linker settings in the project properties page? I thought \"linking\" was kind

3条回答
  •  半阙折子戏
    2021-02-20 03:21

    Linking is a process of combining object files into executables (and dynamic libraries, which have similar to executables format).

    Static libraries aren't linked, they are simple archives of object files.

    When you reference static library in your project, object files are extracted from library and linked together with files of particular project.

提交回复
热议问题