MSVC ABI safety

2013-07-12
2013-07-12
  • Michael Price
    Michael Price
    2013-07-12

    Does anyone know if linking against CppUnit binaries compiled with one version of MSVC (say 9.0, i.e. 2008) would work with code build with a later version of MSVC (say 11.0, i.e. 2012)?

    I know that it boils down to ABI safety, and that it is probably best to just recompile the CppUnit binaries, but I was curious if anyone has experimented with this already, or if someone knows a good reason why it wouldn't work.

     
    • Given that CppUnit exposes STL in its API/header (such as std::string), and
      VS 2008/2012 STL are very different, it is unlikely that this could work.

      Baptiste.

      2013/7/12 Michael Price michaelpricepsi@users.sf.net

      Does anyone know if linking against CppUnit binaries compiled with one
      version of MSVC (say 9.0, i.e. 2008) would work with code build with a
      later version of MSVC (say 11.0, i.e. 2012)?

      I know that it boils down to ABI safety, and that it is probably best to
      just recompile the CppUnit binaries, but I was curious if anyone has
      experimented with this already, or if someone knows a good reason why it
      wouldn't work.


      MSVC ABI safetyhttps://sourceforge.net/p/cppunit/discussion/37107/thread/51b06cd0/?limit=25#d0b8

      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/cppunit/discussion/37107/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       
      • Michael Price
        Michael Price
        2013-07-12

        Yeah, I was afraid that would be the case. Thanks!