• Advertisement

Archived

This topic is now archived and is closed to further replies.

Exporting classes from DLL member variable warning...

This topic is 5416 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

When I compile several classes that I am exporting from a DLL for reuse I get the following warning:
    
warning C4251: 'm_CurrentPos' : struct 'D3DXVECTOR3' needs to have dll-interface to be used by clients of class 'CActor'
    
I also get this warning from the STL templates I'm using in the class(es). Even if I mark the members private, the warning still is compiled. I've attempted to instance various classes and access their member variables with success. NOTE: I know, I know, direct access to member variables isn't good OO design but since I'm not multi-threaded I'm not concerned about corrupting some internal state. My question is, how can I fix this issue since I really cannot change these definitions? Do I just ignore it and drive on? [edited by - LordShade on April 28, 2003 10:08:52 PM]

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement