![]() |
Telelogic Rhapsody (steve huntington) | ![]() |
Topic Title: Rhapsody in C configuration to use the MicrosoftIDF Environment? Topic Summary: Created On: 10-Sep-2007 21:56 Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Besides thh Configuration Setting Environment = MicrosoftIDF, what other changes have to be made to use the MicrosoftIDF in Rhapsody in C?
I've got a trival "HelloWorld" example that results in an error due to an unfound include file in LangC\oxf/RiCTypes.h(22) : fatal error C1083: Cannot open include file: 'ricosconfig.h': No such file or directory To fixed this, I added the Include Path: $(OMROOT)/LangC/osconfig/WIN32 And now I have a bunch of errors because one of the Types.h include files isn't getting pulled in, in the right order. C:/Program Files/Telelogic/Rhapsody 7.1/Share/LangC\oxf/RiCOSWrap.h(62) : error C2143: syntax error : missing ')' before '*' C:/Program Files/Telelogic/Rhapsody 7.1/Share/LangC\oxf/RiCOSWrap.h(62) : error C2143: syntax error : missing '{' before '*' C:/Program Files/Telelogic/Rhapsody 7.1/Share/LangC\oxf/RiCOSWrap.h(62) : error C2059: syntax error : 'type' . . . etc... It appears that RiCOSNT.h isn't getting pulled in properly. Has anyone out there used the MicrosoftIDF environment succusfully? What other configuration changes are required? I've search through the Rhapsody documentation for "MicrosoftIDF", but I've not found any documents that help. [email]DuaneMattern@Yahoo.com[/email] |
|
![]() |
|
![]() |
|
As far as I know the mechanics of the IDF, it is much work to set all the includes and properties you need by hand. Better don't try it this way. The usual way is to add the IDFProfile to your project and to your configuration, which automatically sets all the includes and properties for you.
Here I give you a short step by step HowTo, how to add the IDFProfile to your project and how to create a working configuration. First we add the IDFProfile There are two ways to do this: 1) If you create a new project you get the popup window where you can select the 'Projectname' and 'Projectfolder', there is a third field called "Type". There you choose "IDFProfile". 2) If you already have an existing project, and want to add a new configuration for IDF do the following. [list][*]In the menu: File->Add to Model... [*]There you choose the following path: Rhapsody xx\Share\Profiles[*]Set the file-type filter to: *.sbs [*]Choose 'IDFProfile.sbs' [*]Finally select 'As Reference' and then press open.[/list] Second we add a configuration for the IDFProfile When developing with IDF it is recommended to have two configurations (one for OXF, one for IDF). Because you can't use animation with the IDF, so you mostly develop and debug with OXF. [list][*]Create a new configuration for the IDF (e.g. copy existing configuration with CRTL+Drag in the browser). [*]Open the features of the configuration [*]On the 'Generals' tab choose the stereotype 'IDF in IDFProfile'. [*]On the 'Settings' tab, make sure that environment 'MicrosoftIDF' is selected (this is maybe done automatically for the MicrosoftIDF). [*]Furthermore, because of limitations of the IDF, make sure that your 'Instrumentation Mode' is set to 'None' and your 'Time Model' is set to 'Real'.[/list] If it doesn't work, or if you have further questions regarding the IDF, feel free to ask. Sincerely yours, Bernhard Gaßner |
|
![]() |
|
![]() |
|
Thanks, the procedure that you have outlined is discussed in the documentation and does work for an simple "HelloWorld" example. But if I had a statechart with some details, get it to work with the Microsoft environment and then switch to MicrosoftIDF, some type defintions are losted.
While I can get the type definition back by manually adding references to the OXF include files, it seems to me that there should be an automated procedure for doing this that of which I am not aware. It is particularly annoying as the model complexity increases. |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.