Re: dll export question / stl problem / C4251
- From: "Alex Blekhman" <xfkt@xxxxxxxxx>
- Date: Tue, 12 Sep 2006 11:33:03 +0300
"scott mcfadden" <nospam.smcfadden@xxxxxxxxxxxxxxxx> wrote
in message news:Ox$Gwge1GHA.324@xxxxxxxxxxxxxxxxxxxxxxx
When I mark a class that uses STL strings for export in a
DLL project, VS 2003 gives me lots of warnings on my STL
string class members:
#include <string>
using namespace std
class __declspec(dllexport) MyClass{
public:
//default constructor
MyClass();
//destructor
~MyClass();
void DoIt();
string getSource();
bool setSource(string & source);
protected:
string m_source;
};
warning C4251: MyClass::source: class
'std::basic_string<_Elem,_Traits,_Ax>' needs to have
dll-interface to be used by clients of class MyClass
What causes these warnings? How can I avoid them?
Here's good in-depth explanation:
"VS.NET 2003 Warning C4251"
http://www.unknownroad.com/rtfm/VisualStudio/warningC4251.html
.
- References:
- dll export question / stl problem / C4251
- From: scott mcfadden
- dll export question / stl problem / C4251
- Prev by Date: Re: dll export question / stl problem / C4251
- Next by Date: Re: dll export question / stl problem / C4251
- Previous by thread: Re: dll export question / stl problem / C4251
- Next by thread: Re: dll export question / stl problem / C4251
- Index(es):
Relevant Pages
|