I have some question concerning dllexport, dllimport in C++ in Windows. Let's assume I have some module.cpp
and module.h
which export functions using dllexport
. Let's assume that I also have moduleWrapper.cpp
and moduleWrapper.h
which imports functions from module.cpp
using dllimport
.
Can somebody please explain why can I miss writing #include module.h
in my moduleWrapper.cpp
and moduleWrapper.h
. I can't understand how linker does know about addresses of functions from module.cpp, thanks in advance for any explanation