Compiling static lib inside exe

I have dll and exe, both of which I have sources.

For DLLI compiled completely statically, and therefore I would assume that .libit is also static. However, when I include this libin my C ++ VC ++ 2008 project in Linker> Input> Additional Dependencies. I set the compilation mode to / MT (multithreaded) for exe.

Everything compiles, but when I try to run exe, it asks for a DLL! In the best case, this should not come from my (limited) understanding.

Why should I do?

+3
source share
2 answers

" ", , , , .

DLL ( ), DLL , . , DLL DLL .

, , ( ), , .

+7

.lib, "" DLL, , . DLL ( DLL ) - // .. .

.lib LoadLibrary()/GetProcAddress() .. DLL.

DLL, ( , ).

+3

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


All Articles