IBM Support

How to configure Rational Rhapsody 8.x to use the Microsoft Visual Studio 2013 compiler

Technote (FAQ)


Question

How do you configure IBM Rational Rhapsody 8.1 to use the Microsoft Visual Studio 2013 compiler?

Cause

You wish to compile Rational Rhapsody projects with the Microsoft Visual Studio 2013 compiler.

Answer

Procedure:

  1. Install Rational Rhapsody 8.1 and Microsoft Visual Studio 2013.

  2. In <RHAPSODY_ROOT>\Share\Properties\siteC++.prp add the section:


    Subject CPP_CG
    Metaclass MSVC
    Property IDEVersion Enum "VC9,VC10,VC11,VC12" "VC10"
    end
    end


    Note, the prp file must contain an extra "end" after this section.

  3. Browse to the <RHAPSODY _ROOT>\Share\etc folder and open the msvcmake.bat file

  4. Copy the line

    if "%4"=="VC11" set VS_PATH=C:\Program Files (x86)\Microsoft Visual Studio 11.0\

    and paste a new line beneath with the following changes

    if "%4"=="VC12" set VS_PATH=C:\Program Files (x86)\Microsoft Visual Studio 12.0\


  5. Copy the line

    @echo VC11 - Visual Studio 2012

    And paste with changes

    @echo VC12 - Visual Studio 2013

  6. Open the <RHAPSODY_ROOT>\Share\LangCpp\msbuild.mak and change the section:


    CRT_FLAGS=/D "_CRT_SECURE_NO_DEPRECATE" /MP
    ENABLE_EH=/EHa
    LIB_PREFIX=MS$(MS_VER)$(CPU)$(MT_PREFIX)$(STL_SUFFIX)
    !IF "$(MS_VER)" != "VC9"
    !IF "$(MS_VER)" != "VC10"
    !IF "$(MS_VER)" != "VC11"
    !MESSAGE Library is built for unsupported environment
    !MESSAGE The following options are set:
    !MESSAGE CRT_FLAGS=
    !MESSAGE ENABLE_EH=/GX
    !MESSAGE LIB_PREFIX=MS$(STL_SUFFIX)
    CRT_FLAGS=
    ENABLE_EH=/GX
    LIB_PREFIX=MS$(STL_SUFFIX)
    !ENDIF
    !ENDIF
    !ENDIF


    so that it looks like this:


    CRT_FLAGS=/D "_CRT_SECURE_NO_DEPRECATE" /MP
    ENABLE_EH=/EHa
    LIB_PREFIX=MS$(MS_VER)$(CPU)$(MT_PREFIX)$(STL_SUFFIX)
    !IF "$(MS_VER)" != "VC9"
    !IF "$(MS_VER)" != "VC10"
    !IF "$(MS_VER)" != "VC11"
    !IF "$(MS_VER)" != "VC12"
    !MESSAGE Library is built for unsupported environment
    !MESSAGE The following options are set:
    !MESSAGE CRT_FLAGS=
    !MESSAGE ENABLE_EH=/GX
    !MESSAGE LIB_PREFIX=MS$(STL_SUFFIX)
    CRT_FLAGS=
    ENABLE_EH=/GX
    LIB_PREFIX=MS$(STL_SUFFIX)
    !ENDIF
    !ENDIF
    !ENDIF
    !ENDIF

  7. Open Rational Rhapsody8.1 and load a sample project. For example,
    <RHAPSODY _ROOT>\Samples\CppSamples\Dishwasher

  8. Select the Project’s Active Component/Configuration. For example, EXE and Host

  9. Double-click the configuration in the browser and open the features window. Select the Properties tab and find the CPP_CG::MSVC::IDEVersion property. Switch the value to VC12

  10. Run the Build Framework command in the Code menu.

  11. Once this is completed you can then build and run the sample project via the Code menu > Generate/Make/Run command

Document information

More support for: Rational Rhapsody
Integrations - 3rd Party

Software version: 8.1

Operating system(s): Windows

Reference #: 1677103

Modified date: 15 December 2015