Board logo

标题: 求助ide的问题 [打印本页]

作者: 一切从零开始    时间: 2006-9-25 22:38     标题: 求助ide的问题

我刚用nios2,想做个小系统,但用ide时,用他自带的例程编译时出现以下错误:


Severity Description Resource In Folder Location Creation Time
2 *** [obj/alt_busy_sleep.o] Error 1 hello_led_0   September 25, 2006 12:16:10 AM
2 *** [system_project] Error 2 hello_led_0   September 25, 2006 12:16:10 AM
2 error: parse error before '/' token[/cygdrive/c/altera/kits/nios2/components/altera_nios2/HAL/src/alt_busy_sleep.c] hello_led_0  line 69 September 25, 2006 12:16:10 AM
2 error: parse error before '/' token[/cygdrive/c/altera/kits/nios2/components/altera_nios2/HAL/src/alt_busy_sleep.c] hello_led_0  line 89 September 25, 2006 12:16:10 AM
2 error: parse error before '/' token[/cygdrive/c/altera/kits/nios2/components/altera_nios2/HAL/src/alt_busy_sleep.c] hello_led_0  line 106 September 25, 2006 12:16:10 AM
2 error: parse error before ')' token[/cygdrive/c/altera/kits/nios2/components/altera_nios2/HAL/src/alt_busy_sleep.c] hello_led_0  line 106 September 25, 2006 12:16:10 AM
2 error: parse error before '/' token[/cygdrive/c/altera/kits/nios2/components/altera_nios2/HAL/src/alt_busy_sleep.c] hello_led_0  line 123 September 25, 2006 12:16:10 AM
2 error: parse error before ')' token[/cygdrive/c/altera/kits/nios2/components/altera_nios2/HAL/src/alt_busy_sleep.c] hello_led_0  line 123 September 25, 2006 12:16:10 AM
2 *** [obj/alt_busy_sleep.o] Error 1 hello_led_0_syslib   September 25, 2006 12:16:03 AM
2 error: parse error before '/' token[/cygdrive/c/altera/kits/nios2/components/altera_nios2/HAL/src/alt_busy_sleep.c] hello_led_0_syslib  line 69 September 25, 2006 12:16:03 AM
2 error: parse error before '/' token[/cygdrive/c/altera/kits/nios2/components/altera_nios2/HAL/src/alt_busy_sleep.c] hello_led_0_syslib  line 89 September 25, 2006 12:16:03 AM
2 error: parse error before '/' token[/cygdrive/c/altera/kits/nios2/components/altera_nios2/HAL/src/alt_busy_sleep.c] hello_led_0_syslib  line 106 September 25, 2006 12:16:03 AM
2 error: parse error before ')' token[/cygdrive/c/altera/kits/nios2/components/altera_nios2/HAL/src/alt_busy_sleep.c] hello_led_0_syslib  line 106 September 25, 2006 12:16:03 AM
2 error: parse error before '/' token[/cygdrive/c/altera/kits/nios2/components/altera_nios2/HAL/src/alt_busy_sleep.c] hello_led_0_syslib  line 123 September 25, 2006 12:16:03 AM
2 error: parse error before ')' token[/cygdrive/c/altera/kits/nios2/components/altera_nios2/HAL/src/alt_busy_sleep.c] hello_led_0_syslib  line 123 September 25, 2006 12:16:03 AM
1 Error launching external scanner info generator (make -s -C Debug listincludedirs) hello_led_0   September 25, 2006 12:35:40 AM
1 Error launching external scanner info generator (make -s -C Debug listincludedirs) hello_led_0_syslib   September 25, 2006 12:35:40 AM


 


请问这是设置的问题吗?


还有各位大虾能不能给小弟介绍一下相关的参考资料,我的邮箱wanghaifeng_0413@163.com


谢谢了!


作者: kzw    时间: 2006-9-26 01:56

代码贴上来看看,是不是你的工程建立有问题,或者是你的安装有问题
作者: legendbb    时间: 2006-11-6 09:58

Component: alt_busy_sleep 的驅動程序有語法錯誤,也可能是cpu的系統庫文件出錯了,檢查別的系統,和system.h頭文件可能會有幫助




欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) Powered by Discuz! 7.0.0