While practicing compiling cpp into dll, I encountered the following problem
My Window bit is 64
Here is cpp code that compiled:
#include <iostream>
extern "C" {
__declspec(dllexport) int firstDll(int coercivity) {
return 1 + coercivity;
}
}
Compile command is:
g++ -shared -o Te.dll Te.cpp
And I drop Te.dll
into DependenciesGui, and I found out that there was no dependencies:
ext-ms-win-oobe-query-l1-1-0.dll
I think my cpp code is very simple, Cannot understand there is no required dll
How can I solve this problem?
Should I download that dll?
Please Help.