How to control order of include statements in Rational Rhapsody
How do you control order of include statements in IBM Rational Rhapsody?
You would like to control the order of include statements:
//File b.h containg the typedef
typedef Uint8 unsigned Char
Rational Rhapsody arranges the dependencies in alphabetical order in class1
Now when compiler compiles it will say Uint8 is unknown. So you reorder #include it will compile file
To re-order the sequence of include statements in Rational Rhapsody the best way to force order of include statements is by changing the order in the code itself.
After Roundtrip the information regarding the order is stored in the model and in next Code Generation the order is preserved. There is no need to manually deal with that again.
This would work when the value of the property CPP_Roundtrip::General::RoundtripScheme is set to Respect.
More support for:
Software version: 7.5.2, 18.104.22.168, 7.5.3, 22.214.171.124, 126.96.36.199, 7.6, 188.8.131.52, 7.6.1, 184.108.40.206, 220.127.116.11, 8.0, 8.0.1, 8.0.2
Operating system(s): Linux, Windows
Reference #: 1601109
Modified date: 01 May 2013
Translate this page: