Archived

This forum has been archived. Please start a new discussion on GitHub.

a error where I define a variance !

the rti.ice file as follow:
module IRTI13
{
interface RtiAmb
{
void createFederationExecution(string executionName, string FED) ;
};
};

when I slice it generate a rti.h
its content is as follow:
namespace IRTI13
{
class RtiAmb;
bool operator==(const RtiAmb&, const RtiAmb&);
bool operator<(const RtiAmb&, const RtiAmb&);
}

namespace IRTI13
{
typedef ::IceInternal::ProxyHandle<::IceProxy::IRTI13::RtiAmb> RtiAmbPrx;
}

in my project:
a error where I define a variance :
include "rti.h"
RtiAmbPrx server;
the error:
error C2146: 语法错误 : 缺少“;”(在标识符“server”的前面)
error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int

why I can't define it ?

Comments