Support for Visual Studio 2012 and Intel C13

P. Berger
2012-09-18
2015-08-26
  • P. Berger

    P. Berger - 2012-09-18

    Hi,

    I need support for Visual Studio 2012 as well as the new Intel Compiler 13.

    Is it enough to just add them to the Macros in stlsoft/stlsoft.h?

    I volunteer for testing patches.

     
  • GSU

    GSU - 2012-11-16

    Hi,

    I have the same requirement about Visual Studio 2012, so I decided to create a patch in order to support it.
    I have tested it a bit and it works well enough to acomplish my requirement. I'm using it with Pantheios (you will need to patch Pantheios too).

    If you want to try it, the patch is below (I couldn't find an upload file option here :( )

    -- include/stlsoft/stlsoft.h Mon Jan 19 23:26:36 1970
    +++ include/stlsoft/stlsoft.h Mon Jan 19 23:26:36 1970
    @@ -664,8 +664,10 @@
    #  define STLSOFT_COMPILER_VERSION_STRING       "Visual C++ 9.0"
    # elif (_MSC_VER == 1600)
    #  define STLSOFT_COMPILER_VERSION_STRING       "Visual C++ 10.0"
    +# elif (_MSC_VER == 1700)
    +#  define STLSOFT_COMPILER_VERSION_STRING       "Visual C++ 11.0"
    # else /* ? _MSC_VER */
    -#  error Currently only versions 5.0, 6.0, 7.0, 7.1, 8.0, 9.0 and 10.0 of the Visual C++ compiler are supported by the STLSoft libraries
    +#  error Currently only versions 5.0, 6.0, 7.0, 7.1, 8.0, 9.0, 10.0 and 11.0 of the Visual C++ compiler are supported by the STLSoft libraries
    # endif /* _MSC_VER */

    #else /* ? compiler */
    -- include/stlsoft/util/std/iterator_helper.hpp Mon Jan 19 23:26:36 1970
    +++ include/stlsoft/util/std/iterator_helper.hpp Mon Jan 19 23:26:36 1970
    @@ -429,6 +429,7 @@
                STLSOFT_CF_STD_LIBRARY_DINKUMWARE_VC_VERSION == STLSOFT_CF_DINKUMWARE_VC_VERSION_8_0 || \
                STLSOFT_CF_STD_LIBRARY_DINKUMWARE_VC_VERSION == STLSOFT_CF_DINKUMWARE_VC_VERSION_9_0 || \
                STLSOFT_CF_STD_LIBRARY_DINKUMWARE_VC_VERSION == STLSOFT_CF_DINKUMWARE_VC_VERSION_10_0 || \
    +           STLSOFT_CF_STD_LIBRARY_DINKUMWARE_VC_VERSION == STLSOFT_CF_DINKUMWARE_VC_VERSION_11_0 || \
                0 \
            )
      /* Visual C++ + Dinkumware */
    -- include/stlsoft/util/std/library_discriminator.hpp Mon Jan 19 23:26:36 1970
    +++ include/stlsoft/util/std/library_discriminator.hpp Mon Jan 19 23:26:36 1970
    @@ -289,6 +289,7 @@
    #define STLSOFT_CF_DINKUMWARE_VC_VERSION_8_0            (0x0800)
    #define STLSOFT_CF_DINKUMWARE_VC_VERSION_9_0            (0x0900)
    #define STLSOFT_CF_DINKUMWARE_VC_VERSION_10_0           (0x0a00)
    +#define STLSOFT_CF_DINKUMWARE_VC_VERSION_11_0           (0x0b00)

    #ifdef STLSOFT_CF_STD_LIBRARY_IS_DINKUMWARE_VC
    # if defined(STLSOFT_COMPILER_IS_INTEL) && \
    @@ -339,8 +340,15 @@
    #   endif /* STLSOFT_COMPILE_VERBOSE */
    #   define STLSOFT_CF_STD_LIBRARY_DINKUMWARE_VC_VERSION      STLSOFT_CF_DINKUMWARE_VC_VERSION_10_0

    +#  elif _CPPLIB_VER <= 540
    +  /* Version 11.0 */
    +#   ifdef STLSOFT_COMPILE_VERBOSE
    +#    pragma message("  Dinkumware version 10.0")
    +#   endif /* STLSOFT_COMPILE_VERBOSE */
    +#   define STLSOFT_CF_STD_LIBRARY_DINKUMWARE_VC_VERSION      STLSOFT_CF_DINKUMWARE_VC_VERSION_11_0
    +
    #  else
    -#   error Dinkumware C++ Library version unrecognised: are you using a version of VC++ later than 10.0?
    +#   error Dinkumware C++ Library version unrecognised: are you using a version of VC++ later than 11.0?

    #  endif /* _CPPLIB_VER */

     
  • Matt Wilson

    Matt Wilson - 2015-08-26

    STLSoft support for VC++ 12/14 in 1.9.119, just released.

    Pantheios support will be coming soon.

    No current plans to support ICL, but happy to help with advice for someone to do it.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks