Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic Rhapsody (steve huntington)
Decrease font size
Increase font size
Topic Title: How to use free Visual C++ 2005 Express Edition with Rhapsody
Topic Summary:
Created On: 8-Dec-2006 08:50
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 8-Dec-2006 08:50
User is offline View Users Profile Print this message


Simon Morrish

Posts: 127
Joined: 17-May-2005

For Rhapsody in C/C++ host-based model execution and animation, the most direct approach is to use the out-of-the-box support for Microsoft Visual Studio (either Visual C++ 6.0 or Visual Studio .NET.)

However, if you don't own and don't want to buy Visual Studio, Rhapsody can use the free "Express Edition" of Visual C++. This article describes how:

  1. Download and install Microsoft Visual C++ 2005 Express Edition
  2. Download and install Microsoft Platform SDK
  3. Optionally, follow Microsoft's instructions on "Using Visual C++ 2005 Express Edition with the Microsoft Platform SDK"
    (Only required if you want to develop applications within the Visual Studio IDE as well as Rhapsody.)
  4. Optionally, backup your existing Microsoft build environment files:
    <RhapsodyDir>\Share\etc\vcvars32.bat
    <RhapsodyDir>\Share\LangCpp\Lib\MS*.*
    <RhapsodyDir>\Share\LangC\lib\MS*.*
  5. Save the attached file as <RhapsodyDir>\Share\etc\vcvars32.bat.
    (<RhapsodyDir> is the folder where you installed Rhapsody.)
  6. Open a command prompt in the <RhapsodyDir>\Share folder and type the following commands:
etc\vcvars32.bat
cd LangC
nmake -f msbuild.mak BUILD_SET=DEBUG
nmake -f msbuild.mak BUILD_SET=RELEASE
cd ..
cd LangCpp
nmake -f msbuild.mak BUILD_SET=DEBUG
nmake -f msbuild.mak BUILD_SET=RELEASE
cd ..


Notes:
  • If you don't have Rhapsody in C, omit the four commands beginning with "cd LangC"
  • If you don't have Rhapsody in C++, omit the four commands beginning with "cd LangCpp"
  • If you have any problems building, first check the contents of vcvars32.bat; if your VC++ or Platform SDK is installed to a non-default path, you'll need to modify the environment variables set in this file.

That's it! Now you can start Rhapsody in C/C++ to build and execute models on your host PC.

If you find this helpful, I'd welcome feedback, good or bad! (Good is better, or course )

regards,
Simon




-------------------------
Simon Morrish
simon.morrish@eu.panasonic.com
http://panasonic.co.uk
Panasonic ideas for life

Edited: 11-Mar-2008 at 11:32 by Simon Morrish
Report this to a Moderator Report this to a Moderator
 8-Dec-2006 10:25
User is offline View Users Profile Print this message


Simon Morrish

Posts: 127
Joined: 17-May-2005

A further suggestion...

If you follow the solution above, the compiler will report the following warnings for each source file:

cl : Command line warning D9035 : option 'GX' has been deprecated and will be removed in a future release
cl : Command line warning D9036 : use 'EHsc' instead of 'GX'

If you'd like to eliminate these, edit Rhapsody's C_CG/CPP_CG::Microsoft::CompileSwitches property and change the /GX to /EHsc.

This property can be edited at the configuration, component, or project level, or set permanently in your SiteC/SiteC++.prp property file.

regards,
Simon

-------------------------
Simon Morrish
simon.morrish@eu.panasonic.com
http://panasonic.co.uk
Panasonic ideas for life

Edited: 11-Mar-2008 at 11:34 by Simon Morrish
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic Rhapsody forum.
There are currently 0 users logged in.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.