出现fatal error LNK1169: one or more multiply defined symbols found
请大家帮忙!
多重定义这种错误怎么解决?
程序如下:
//#include <stdlib.h>
#include <stdio.h>
//typedef int size_t;
strlen (char * string)
{
int length = 0;
while(*string++ != '/0')
length +=1;
return length;
}
int main()
{
char *s = "hello";
printf("the length of the string is %d\n",strlen(s));
return 0;
}