からエクスポートされone.dll
たクラスを使用するDLL があります。forを使用したいのですが、リンク エラーが発生します。TwoClass
two.dll
class __declspec(dllexport)
one.dll
/delayload
two.dll
LINK : fatal error LNK1194: cannot delay-load 'two.dll' due to import
of data symbol '"__declspec(dllimport) const TwoClass::`vftable'"
(__imp_??_7TwoClass@@6B@)'; link without /DELAYLOAD:two.dll
これはリリース ビルドです。デバッグビルドでは機能します。(vtable エクスポートに関して、Release と Debug の違いが何であるかはわかりません。また、それを制御するためのコンパイラ スイッチやプラグマも見つかりません。)
/delayload
このようなクラスをリリース ビルドでエクスポートする DLLを使用するにはどうすればよいですか?