#207 VS2010 numerous C4251 build warnings (1.12.1)

1.12.1
closed-fixed
Bitwise
5
2012-08-16
2012-08-06
Bitwise
No

When attempting to build 1.12.1 with VS2010 (based on VS2008 work), numerous C4251 warnings (W1) show up due to a known problem between the VS2010 compiler and the associated STL libraries that ship with the compiler. [In the cppunit case, the STL class causing the problem is std::string.]

Example of output (repeated numerous times):

D:\...\cppunit\include\cppunit/Exception.h(82): warning C4251: 'CppUnit::Exception::m_whatMessage' : class 'std::basic_string<_Elem,_Traits,_Ax>' needs to have dll-interface to be used by clients of class 'CppUnit::Exception'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Ax=std::allocator<char>
]

[The best description of the problem and remedy that I am aware of is at: <http://www.unknownroad.com/rtfm/VisualStudio/warningC4251.html> ]

Discussion

  • Bitwise
    Bitwise
    2012-08-06

    • assigned_to: blep --> nobody
     
  • Bitwise
    Bitwise
    2012-08-16

    • assigned_to: nobody --> hbrydon
     
  • Bitwise
    Bitwise
    2012-08-16

    Fixed in a revision prior to 597.

     
  • Bitwise
    Bitwise
    2012-08-16

    • milestone: 623162 --> 1.12.1
    • status: open --> closed-fixed