Discuz! Board

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 1229|回复: 1
打印 上一主题 下一主题

自定义窗口中加入Q_OBJECT报qt_metacall 无法解析的外部符号

[复制链接]

1228

主题

1997

帖子

7580

积分

认证用户组

Rank: 5Rank: 5

积分
7580
跳转到指定楼层
楼主
发表于 2020-4-1 17:04:16 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
严重性        代码        说明        项目        文件        行        禁止显示状态

错误        LNK1120        3 个无法解析的外部命令        testChat        D:\test.exe        1        

错误        MSB3073        命令“call ninja.exe -C ..\out\Debug\ -k0 testChat”已退出,代码为 1。        testChat        D:\test.vcxproj        1393        

错误        LNK2001        无法解析的外部符号 "public: virtual int __thiscall Contact::SwitchBox::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@SwitchBox@Contact@@UAEHW4Call@QMetaObject@@HPAPAX@Z)        testChat        D:\test.switchbox.obj        1        

错误        LNK2001        无法解析的外部符号 "public: virtual struct QMetaObject const * __thiscall Contact::SwitchBox::metaObject(void)const " (?metaObject@SwitchBox@Contact@@UBEPBUQMetaObject@@XZ)        testChat        D:\test.switchbox.obj        1        

错误        LNK2001        无法解析的外部符号 "public: virtual void * __thiscall Contact::SwitchBox::qt_metacast(char const *)" (?qt_metacast@SwitchBox@Contact@@UAEPAXPBD@Z)        testChat        D:\test.switchbox.obj        1        

回复

使用道具 举报

1228

主题

1997

帖子

7580

积分

认证用户组

Rank: 5Rank: 5

积分
7580
沙发
 楼主| 发表于 2020-4-2 11:17:40 | 只看该作者
>gyp\refresh.bat
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|firemail ( 粤ICP备15085507号-1 )

GMT+8, 2024-4-30 05:20 , Processed in 0.056158 second(s), 18 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表