在stm32上移植ucgui,裸奔的,修改了读点,写点,初始化函数,编译可以通过,链接时出现
.\Obj\Project.axf: Error: L6218E: Undefined symbol exit (referred from jerror.o).
.\Obj\Project.axf: Not enough information to list image symbols.
.\Obj\Project.axf: Finished: 1 information, 0 warning and 1 error messages.
大体意思是说exit符号没定义,我打开jerro.c文件,发现了有这么一个函数:
METHODDEF(void)
error_exit (j_common_ptr cinfo)
{
/* Always display the message */
(*cinfo->err->output_message) (cinfo);
/* Let the memory manager delete any temp files before we die */
jpeg_destroy(cinfo);
exit(EXIT_FAILURE);
}
找了一下exit()在<stdlib.h>中,确实也包含了,搞来搞去还是不行,干脆把这句注释,编译链接通过了,并且gui可以正常运行,为什么会出现这样的情况呢,请指教!
|