社区
Qt
帖子详情
invalid use of incomplete type这是什么错误啊》?
kangyuanxun
2012-03-27 01:33:31
编译的时候出现这个错误,调试很久都调试出来,
类型不完全?还是什么
...全文
1664
1
打赏
收藏
invalid use of incomplete type这是什么错误啊》?
编译的时候出现这个错误,调试很久都调试出来, 类型不完全?还是什么
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
1 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
hemiya
2012-03-27
打赏
举报
回复
使用无效,类型不完全。
少;(){}等的方面比较大,
仔细看代码,逐步分片注释掉代码,编译,找出具体位置。
invalid
use
of in
com
p
let
e
type
(解决方案).md
invalid
use
of in
com
p
let
e
type
(解决方案).md
基于ElasticFusion的双目视觉实时三维重建系统.zip
基于ElasticFusion的双目视觉实时三维重建系统.zip
Delphi7.1 Update
Delphi 7.1 Update Release Notes=======================================================This file contains important supplemental and late-breakinginformation that may not appear in the main productdocumentation, and supersedes information contained in otherdocuments, including previously installed release notes.Borland re
com
mends that you read this file in its entirety.NOTE: If you are updating a localized version of Delphi 7, visit the Borland Registered
Use
r web site to obtain a localized readme file that may contain important late- breaking information not included in this readme file.IMPORTANT: Delphi must be closed before installing this update. =====================================================CONTENTS * INSTALLING THIS UPDATE * UPDATING LOCALIZED VERSIONS OF DELPHI 7 * KNOWN ISSUES * ISSUES ADDRESSED BY THIS UPDATE - IDE - CORE DATABASE - DATASNAP - DBGO (ADO
COM
PONENTS) - dbExpress - dbExpress
COM
PONENTS AND DB VCL - dbExpress CORE DRIVER AND METADATA - dbExpress VENDOR ISSUES - dbExpress CERTIFICATION - WEB SNAP - ACTIVEX -
COM
PILER - RTL - VCL - THIRD PARTY - BOLD FOR DELPHI * VERIFYING THAT THE UPDATE WAS SUCCESSFUL * FILES INSTALLED BY THIS UPDATE =======================================================INSTALLING THIS UPDATE* This update can not be applied to Delphi 7 Architect Trial version. * This update can not be removed after it is installed.* You will need the original Delphi 7 installation CD available to install this update.* To install this update from the CD, insert the CD, and launch the d7_ent_upd1.exe file appropriate for your locale.* To install this update from the Web, double-click the self-executing installation file and follow the prompts. * The Delphi 7 documentation PDF files are available on the update CD.========================================================UPDATING LOCALIZED VERSIONS OF DELPHI 7* This update can be applied only to the English version of Delphi 7. There are separate updates for the German, French and Japanese ver
error:
invalid
use
of in
com
p
let
e
type
error:
invalid
use
of in
com
p
let
e
type
一. 首先,要确定自己定义的类是完整的,构造函数,析构函数都有,函数的声明及定义分开在.h和.cpp中实现。 如果确定类是完整的,仍然出现error:
invalid
use
of in
com
p
let
e
type
的报错,那么问题出现在该类的使用上,而不是类的实现上. 二. 在使用某个已经实现的类时: 如果只是定义某个类的指针,可以使用class关键字先进行声明,而不需包含头文件; 但如果涉及到定义某个类的对象或
invalid
use
of in
com
p
let
e
type
struct 或者是class的解决办法
在写完代码之后进行编译时,提示"
invalid
use
of in
com
p
let
e
type
struct" 或者 "
invalid
use
of in
com
p
let
e
type
class" 的解决办法: 1、对应的头文件要包含,这个是必须的。 当时因为没有包含头文件,也汇报上的
错误
2、编译器不知道所用的是struct 还是class,所以需要引用该struct 或 class的头文件,记住:只要引用了struct 或 class,就需要包含对应的头文件 一般就是这2种情况,其他的情况暂未遇到,
Qt
21,486
社区成员
26,693
社区内容
发帖
与我相关
我的任务
Qt
Qt 是一个跨平台应用程序框架。通过使用 Qt,您可以一次性开发应用程序和用户界面,然后将其部署到多个桌面和嵌入式操作系统,而无需重复编写源代码。
复制链接
扫一扫
分享
社区描述
Qt 是一个跨平台应用程序框架。通过使用 Qt,您可以一次性开发应用程序和用户界面,然后将其部署到多个桌面和嵌入式操作系统,而无需重复编写源代码。
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章