How is the C++ standard library linked to my application?

后端 未结 5 1784
情歌与酒
情歌与酒 2020-12-29 15:13

When I usually use code (include headers) from 3rd party (non-standard) C++ libraries, a pre-built binary file is linked to (or included in) the target executable that repre

5条回答
  •  梦毁少年i
    2020-12-29 15:43

    The only basic run-time dependancy for MinGW C++ programs is on MSVCRT.DLL. Other dependancies will depend on what your program actually does - for example, if it uses ODBC database connectivity, it will depend on ODBC32.DLL (and probably some other Windows DLLs). However, using classes like std::string or std::vector in a MinGW C++ program will not introduce new dynamic library dependancies.

    If you are worried about dynamic library dependancies, check out the tool "Dependency Walker" at http://www.dependencywalker.com/

提交回复
热议问题