各位高手帮帮忙,我遇到一个问题,几天了,还是没有起色,看看是什么地方需要设置。
#include <stdlib.h>
char *str = NULL;
void main(void)
{
/* allocate memory for string */
str = calloc(10, sizeof(char));
// strcpy(str, "Hello");
free(str);
}
提示的问题:
#error clnk Debug\besp.lkf:1 symbol __endmem not defined ((C:\Program Files\COSMIC\CXSTM8_16K\Lib\libis0.sm8)sbreak.o )
The command: "clnk -m Debug\besp.map -l"C:\Program Files\COSMIC\CXSTM8_16K\Lib" -o Debug\besp.sm8 Debug\besp.lkf " has failed, the returned value is: 1
exit code=1.
|