Link error linking from managed to unmanaged C++ despite linking to .lib file with exported symbols

后端 未结 1 748
情书的邮戳
情书的邮戳 2021-01-25 19:40

Despite following various posts on using and linking to unmanaged C++ code from a C++/CLI wrapper dll, I cannot resolve these link issues.

1>MyClassAdapter.ob         


        
1条回答
  •  礼貌的吻别
    2021-01-25 20:13

    Few points:

    • Use Dependency Walker for the DLL and check if those symbols are actually in DLL.
    • Ensure you are using correct lib file - a 32-bit LIB cannot be used for 64-bit build.
    • Ensure the .CPP file used to build the class is actually unmanaged one (or the DLL itself, as a whole, is unmanaged).

    0 讨论(0)
提交回复
热议问题