首页 > 其他 > 详细

运行代码时报linker command failed with exit code 1 错误

时间:2017-08-22 20:10:41      阅读:366      评论:0      收藏:0      [点我收藏+]

一个c语言项目,在.h文件中原来只有一些方法的声明,后来我加入了一些变量声明后,编译的时候报错:

运行代码时报linker command failed with exit code 1 错误

怎么回事那?

【解决方法】

将变量的声明都移到.c文件中去就好了。

运行代码时报linker command failed with exit code 1 错误

原文:http://www.cnblogs.com/time-is-life/p/7413381.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!