stl을 DLL제작시 문제점..warning C4251: 에 대한 대처
Posted by Go crazy for anything that will make you smile.
원문링크 : http://blog.naver.com/wwforever80/60043796212 #include #if !defined(DLLEXPORT_EXPORTS) # define DLLEXPORT_API __declspec(dllexport) #else # define DLLEXPORT_API __declspec(dllimport) #endif class DLLEXPORT_API CDLLexport { public: std::vector vs; }; warning C4251: 'vs' : class 'std::vector' needs to have dll-interface to be used by clients of class 'CDLLexport..