To compile a GME interpreter with VC7.1 you need to make the
following changes on the generated interpreter sources.
(You don't need to install STL Port, unlike VC6).
- Events.cpp
-
Insert line:
#include <algorithm>
at the very top of the file.
- BONImpl.cpp
-
In function
_getMetaRole( IMGAFCO* spFCO )
replace the line;
return spMeta;
with
return MON::Containment(spMeta);
-
In function
FCOImpl::onObjectCreated()
replace the line;
FCO( getType() );
with
FCO( this->getType() );
-
In function
ConnectionImpl::createI( const Model& parent, const MON::Conatainment& meta, const std::set<Connection::Pair>& ends )
replace the line;
for ( std::set<Connection::Pair>::iterator it = ends.begin() ; it != ends.end() ; it++ ) {
with
for ( std::set<Connection::Pair>::const_iterator it = ends.begin() ; it != ends.end() ; it++ ) {
- Extensions.h
-
In
class Extension
replace the line
static std::vector vecKinds;
with
public: static std::vector vecKinds; private:
-
In
class Extension
Insert line:
public:
before the line:
static ExtensionInfo castImpl( ObjectType eOType, const std::string& strKind, const std::string& strRole )
-
Redo the previous actions for the classes;
Extension2, Extension3, ExtensionA, ExtensionA2, ExtensionA3
- Extensions.cpp
-
In function
mergeTypes()
replace line
if ( eType2 == OT_Null ) {
with
if ( eType2 == OT_Null && eType1 != OT_Null) {