-
March 21st, 2014, 05:03 AM
#1
Compiler warning C4275
I'm building somebody else's source code and I'm constantly getting compiler warnings like this:-
warning C4275: non-DLL interface class 'boost::noncopyable_::noncopyable' used as base class for DLL interface class
To be fair, I don't seem to be getting any problems at run time but I was curious to find out what the warning was telling me, so I ended up here:-
MSDN C4275
I do understand the English but I'm not getting some of the concepts. For example, I can understand why (if the derived class was a template class) it shouldn't access static data (I'd assume that's almost always true for template classes anyway?) And I get this statement:-
All your static data is accessed through functions that are exported from the DLL
Which again is good practice anyway. What I don't get is the implication that doing these things would have been fine if the base class had been declared with __declspec(dllexport)
Whether or not the base class was exported, why should it make any difference to accessing static data
Last edited by John E; March 21st, 2014 at 05:05 AM.
"A problem well stated is a problem half solved.” - Charles F. Kettering
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|