Home Help Center

a error where I define a variance !

atengateng Member wang tengOrganization: Nanjing University of Science and TechnologyProject: intelligent information distribution system ✭✭
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

  • atengateng Member wang tengOrganization: Nanjing University of Science and TechnologyProject: intelligent information distribution system ✭✭
    I have solve the problem.

    Thanks very much.
Sign In or Register to comment.