用Nios II IDE进行编译的过程中提示如下错误,不知是怎么回事……
Linking hello_led_0.elf...
D:/altera/quartus60/mywork/sopc_led/software/hello_led_0_syslib/Debug/system_description/generated.x:319: undefined symbol `_exit' referenced in expression
collect2: ld returned 1 exit status
make: *** [hello_led_0.elf] Error 1
Build completed
ide提示你没有定义_exit
你给的信息太少了。
我觉得应该是你的ide的设置或使用有问题。你可以先看看使用nois自带的一些程序模版,看会不会报错。
恩,楼上说得对,先试一下模版代码,注意一下设置,看编译是否出问题,如果还是出问题,那应该是环境装得有问题。
后来我定义了_exit还是存在
make: *** [hello_led_0.elf] Error 1
其实_exit不需要用户自己定义的,你用模块程序出错的话,基本就是你的环境装的有问题了
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |