使用MSVC生成代码时rhapsody出错 [英] Error in rhapsody while generating Code Using MSVC

查看:356
本文介绍了使用MSVC生成代码时rhapsody出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

错误C2259:'CRenderer':无法实例化抽象类

       由于以下成员:

        'void IRendererReq :: UpdateList(char *,uint32_t,uint32_t,const pvoid&)':is abstract

        d:\ project:\\ model \ itsst \ model = \\ globalb \ my20_e3p5 \ IRendererReq.h(58):查看'IRendererReq :: UpdateList'的声明


NMAKE:致命错误U1077:'" c:\Program Files(x86)\ Microsoft Visual Studio 10.0 \VC \BIN \ amd64 \cl.EXE"':返回代码'0x2'。

error C2259: 'CRenderer' : cannot instantiate abstract class
        due to following members:
        'void IRendererReq::UpdateList(char *,uint32_t,uint32_t,const pvoid &)' : is abstract
        d:\project\model\latest\model\globalb\my20_e3p5\IRendererReq.h(58) : see declaration of 'IRendererReq::UpdateList'
NMAKE : fatal error U1077: '"c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\cl.EXE"' : return code '0x2'.

我面临以上错误 在Rhapsody中生成代码。同一模型在其他系统中工作正常 - 在其他系统中生成代码,构建和创建.exe。你可以帮我解决这个错误吗?

I am facing the Above error  while generating code in Rhapsody. same model works fine in other systems- generates code, builds and creates .exe in other system. Could you please assist me in resolving this error ?

推荐答案

您好,

我认为您必须定义函数UpdateList。阅读:
https://en.cppreference.com/w/cpp/language/abstract_class

I think you must define the function UpdateList. Read this: https://en.cppreference.com/w/cpp/language/abstract_class

你说,你的代码可以在其他系统中运行。所以Rhapsody以与其他系统不同的方式宣布了这个类。

You say, your code works in other systems. So Rhapsody has declared the class in a different way than the other systems.

问候,Guido


这篇关于使用MSVC生成代码时rhapsody出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆