Mark Lewis' BLOG

导航

2011年4月29日 #

【笔记】NIOS Error: multiple definition of ***

摘要: 在将C语言例程改制成NIOS工程的时候,遇到了下图的错误,而且报错得很厉害,五六十条Error全是这样的:first defined heremultiple definition of "******"最后感谢搜索引擎,问题解决了~参考这篇文章:http://www.cppblog.com/baye/archive/2007/11/11/36398.html在***.h文件中为函数都加上extern声明;而后在main函数中#include ***.h 文件而不要包含***.c文件。例如我这里报错都集中在lcd.c文件中,在lcd.h文件中给所有报错函数加上extern声 阅读全文

posted @ 2011-04-29 08:37 Mark Lewis 阅读(1300) 评论(0) 推荐(1) 编辑