Question & Answer
Question
How do you configure Microsoft Visual Studio 2010 as a compiler for use with IBM Rational Rhapsody version 7.6?
Cause
Microsoft Visual Studio 2010 is not officially supported as an integration with Rhapsody 7.6; however, Rational Rhapsody can be configured to support Microsoft Visual Studio 2010 as a compiler which can work in parallel with Microsoft Visual Studio 2008.
Answer
- Apply the following steps to configure Rational Rhapsody to compile using Microsoft Visual Studio 2010:
- Download and extract the contents of the attached compressed file
- msvc10make.bat
- msbuild10.mak
- siteC++_MSVC10.prp
- siteC++.prp
- Verify the installation path of Visual Studio 2010 in the file 'msvc10make.bat'
For example: C:\Program Files\Microsoft Visual Studio 10.0
- Set the path variable for Visual Studio 2010 from the command line (or GUI)
For example:
"set VS2010_PATH=C:\Program Files\Microsoft Visual Studio 10.0"
- Place the following files into the respective Rhapsody installation directory
- Place msvc10make.bat in the Share\etc directory
- Place msbuild10.mak in the Share\LangCpp directory
- Place siteC++_MSVC10.prp in the Share\Properties directory
- Add following lines to the siteC++.prp file
Note: Attached is a copy of the how the modified siteC++.prp file should look. If you do not have any extra properties that needs to be included in this file, then use the attached file instead.
Include "siteC++_MSVC10.prp"
Subject CPP_CG
Metaclass Configuration
Property Environment Enum
"Microsoft,MicrosoftDLL,MSVC9,MSVC10,MSVC9DLL,VxWorks,VxWorks6diab,VxWorks6gnu,VxWorks6diab_RTP,VxWorks6gnu_RTP,Solaris2,Cygwin,MSStandardLibrary,MSVC9StandardLibrary,MicrosoftWinCE600,OseSfk,Linux,Solaris2GNU,QNXNeutrinoGCC,QNXNeutrinoMomentics,INTEGRITY,INTEGRITY5,IntegrityESTL,Integrity5ESTL,NucleusPLUS-PPC,WorkbenchManaged,WorkbenchManaged653,WorkbenchManaged_RTP" "Microsoft"
end
end
end
- Launch Rational Rhapsody in C++
- Create a project (File > New > Project)
- Select the configuration environment 'MSVC10' via Features of the active configuration. (From the context menu of the configuration Features > Settings > Environment > MSVC10)
- Build the framework
(Code > Build Framework) - Observe the framework build log in the output window
Once complete you can check the library files in the installation directory LangCpp\lib. The library files are preceded with "MSVC10"
For example: C:\Program Files\IBM\Rational\Rhapsody\7.6\Share\LangCpp\lib
Note: This document is applicable to Rhapsody for C++ and Rhapsody for C language
[{"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Rational Rhapsody Developer","Platform":[{"code":"PF033","label":"Windows"}],"Version":"7.6","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]
Product Synonym
Rational Rhapsody
Was this topic helpful?
Document Information
Modified date:
27 May 2022
UID
swg21511885