社区
工具平台和程序库
帖子详情
visual studio2003
qubo_528
2008-03-19 04:17:12
用vs建一个工程,如建立一个person类,分person.cxx和person.hxx
在主成熟中#include "person.h"
int main()
{
person a;
return 0;
}
为什么编译不过,如果声明和定义都写在person.hxx中可以编过
请在这方面多多指教
...全文
114
7
打赏
收藏
visual studio2003
用vs建一个工程,如建立一个person类,分person.cxx和person.hxx 在主成熟中#include "person.h" int main() { person a; return 0; } 为什么编译不过,如果声明和定义都写在person.hxx中可以编过 请在这方面多多指教
复制链接
扫一扫
分享
转发到动态
举报
AI
作业
写回复
配置赞助广告
用AI写文章
7 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
qubo_528
2008-03-19
打赏
举报
回复
test4 error LNK2019: unresolved external symbol "public: void __thiscall person::display(void)" (?display@person@@QAEXXZ) referenced in function _main
test4 fatal error LNK1120: 1 unresolved externals
其中test4为工程名
多多指教
晨星
2008-03-19
打赏
举报
回复
哦,你最好还是用cpp的扩展名,不要用cxx。
VC默认是编译.c和.cpp为扩展名的文件,而.cxx的,对VC来说,就跟.doc,.mp3一样,它不觉得那个是个源程序文件。
晨星
2008-03-19
打赏
举报
回复
编译报啥错?
qubo_528
2008-03-19
打赏
举报
回复
不好意思,打错了!!
是,#include "person.hxx"
qubo_528
2008-03-19
打赏
举报
回复
不好意思,打错了!!
是,#include "person.hxx"
晨星
2008-03-19
打赏
举报
回复
是啊,为啥包含的时候把文件名中本来有的“xx”给去掉了?
珍惜生命远离CPP
2008-03-19
打赏
举报
回复
person.hxx
#include "person.h"
名字不对吧
Microsoft
Visual
Studio
2003
.NET 安装指南
Microsoft
Visual
Studio
2003
.NET 安装指南Microsoft
Visual
Studio
2003
.NET 安装指南 操作系统:Windows 2000 Server 系列Windows XP ProfessionalWindows
2003
系列 P.S:Windows 2000需要安装相应的Host ...
Visual
Studio
2003
下载地址
Visual
Studio
2003
下载地址http://www.ivdown.com/ShowContent.aspx?id=1546&pid=4&cid=36 msdn
2003
帮助文件下载地址 MSDN library CD1 http://soft.pdsu.edu.cn/download.asp
Visual
Studio
2003
下载地址 V7.1各种版本官方下载网址
Visual
Studio
.NET
2003
简体中文版 CD1下载地址:ftp://cnc-ftp3.a5d.com/download/sc_vs.net_
2003
_library_cd1.iso CD2下载地址:ftp://cnc-ftp3.a5d.com/download/sc_vs.net_
2003
_library_cd2.iso CD3下载...
Visual
Studio
各种版本及官方下载地址
Visual
Studio
2003
版本 7.1。
Visual
Studio
2005 版本 8.0。
Visual
Studio
2017 版本 15.9.X。
Visual
Studio
2019 版本 16.1.X。
Visual
Studio
2022 版本 17..X。
Visual
Studio
2019 for Mac 版本 8.0。
Visual
...
Microsoft
Visual
Studio
2003
2005 2008 2010 2012 下载
为了方便大家 ,我收集的工具公布出来...VS
2003
http://pan.baidu.com/share/link?shareid=2273846783&uk=3995120429 VS 2005 http://pan.baidu.com/share/link?shareid=2302379932&uk=3995120429 VS 2008 http:/
工具平台和程序库
24,860
社区成员
27,333
社区内容
发帖
与我相关
我的任务
工具平台和程序库
C/C++ 工具平台和程序库
复制链接
扫一扫
分享
社区描述
C/C++ 工具平台和程序库
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章