I am trying to understand how dynamic linking works and I understand most of it but now how does the compiler or the linker know which dll exactly I am importing from?
For example I have test_program.dll that exports a function called test(); and I used __declspec(dllimport) in my program to import that function there could be thousands of functions in my system that have the same name and are also exported how does the compiler differentiate between them?