1 0 00011109 get_value
The symbol does not have its normal decoration. It would normally be _get_value
, all cdecl functions get a leading underscore. And using __declspec(dllexport)
also provides the __imp_get_value
export. It is a function pointer that optimizes the binding.
But that did not happen, you must have used a .def file in your library project. Which renames exported functions. Which is okay, but now your __declspec(dllimport)
is incompatible, the DLL no longer exports the __imp_
function pointer. The linker complains because it cannot find it the import library.
Fix this either by removing the .def file from your library project (best) or by deleting the __declspec(dllimport) attribute from the declaration in your exe project. Writing a .h file that declares the exported functions in the DLL is also highly recommended.