I use dumpbin to convert a dll file to lib file:
- get def file using dumpbin.exe /export and edit it
- generate lib file using lib.exe. The header files are available, however, when I include the header files and link against the lib file, there are linking errors:
error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl db::Layout::Layout(class db::Manager *)" (__imp_??0Layout@db@@QEAA@PEAVManager@1@@Z)
I checked the def file, some lines are like:
_ZN2db6LayoutC1EPNS_7ManagerE
_ZN2db6LayoutC1ERKS0_
_ZN2db6LayoutC1EbPNS_7ManagerE
_ZN2db6LayoutC2EPNS_7ManagerE
_ZN2db6LayoutC2ERKS0_
_ZN2db6LayoutC2EbPNS_7ManagerE
How to fix it? Did I miss some link settings in VC project? Thanks.