4.检测到 Mac 文件格式: 请将源文件转换为 DOS 格式或 UNIX 格式

error:

 晚上用vs2010运行程序,出现如下的错误:

error C4335: Mac file format detected: please
convert the source file to either DOS or UNIX format

解决办法,非常简单可以解决:

方法一,用editplus打开,再复制回VS

方法二:在VS中,点文件->高级保存选项,然后在行尾选项中选择windows(CR LF),重新编译,ok

猜你喜欢

转载自blog.csdn.net/DylanDong/article/details/53208249
今日推荐