昨日の続き。C4251警告について。 [MSDN]'identifier' : class 'type' は __export キーワードを使って class 'type2' にエクスポートしてください。 class Context { public: static std::auto_ptr<Context> GetInstance(){ return s_singleton; } Context(); ~Context(); private: struct Impl; std::auto_ptr<Impl> pimpl_; static std::auto_ptr<Context> s_singleton; }; もともとライブラリのヘッダがこんなだった場合。次のように書くとstd::auto_ptrがC4251警告になります。 #if DLLとしてビルドする場合 # define D