c - When a library my program depends depends on another library -



c - When a library my program depends depends on another library -

when library programme depends depends on library, shall specify both libraries when compile programme either static or dynamic linking?

when compile programme dynamically linking, shall create both libraries found during loading?

thanks.

when exe depends on dll should add together import library a.lib linker when linking exe.

when dll depends on dll b should add together import library b.lib linker when linking a.dll.

when run exe both dlls shall available in search path.

edit

building executable module (i.e. exe or dll) comprises compiling of source files , linking compiler output libraries executable.

when consume dll #include header file defines interface dll while compiling sources. import libraries of dlls (a.lib, b.lib) not required here.

in sec stage of build process linker creates executable module. linker input compiler output, static libraries, import libraries of runtime msvcr110.dll , import library of a.dll.

so when "when linking" mean operation of linker during build process. compiler has done it's job @ point. if utilize visual studio have add together import library a.lib linker settings of project.

c

Comments

Popular posts from this blog

php - How to pass multiple values from url -

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

database - php search bar when I press submit with nothing in the search bar it shows all the data -