vc6.0出现错误:Debug/建文件夹.exe : fatal error LNK1169: one or more multiply defined sym
同样的代码,我在Cfree软件下编译,可以正常运行,在Vc++6.0下编译正常,连接报错Debug/建文件夹.exe : fatal error LNK1169: one or more multiply defined symbols found
#include "stdio.h"
#include "stdlib.h"
int main()
{
FILE *fp;
if((fp=fopen("d:\\45.txt","wb"))==NULL) /*建立c:\45.CH文件*/
{
printf("\nopen file error");
getchar();
exit(1);
}
fputs("34234",fp);/*写入34234数据*/
fclose(fp);
if((fp=fopen("d:\\33.txt","wb"))==NULL)/*建立33.CH文件*/
{
printf("\nopen file error");
getchar();
exit(1);
}
fclose(fp);
return 0;
}
希望高手指出