Link issue and inclusion of different versions of lib

This is a problem if I have an executable and the library uses different versions of another library.

Example:

If I have an executable: A.exe, and it basically wraps and depends on the A.lib static library

Both A.exe and A.lib need a different B.lib library

If I have a situation like this:

A.lib library includes B.lib version 1 (uses the header files from this library) A.exe executable file includes B.lib version 2 A.exe executable links versus B.lib version 2

Under what conditions will this be problematic?

thank

+3
source share
1 answer

B1.Lib, B2.Lib, A.exe, . , B1:: fn B2:: fn, A.Lib B1, A.exe B2, . , 100% , B1 B2.

A.lib B2.lib. ...

+2

Source: https://habr.com/ru/post/1761684/


All Articles