vc里面遇到这个问题的解决方案

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

原因

很有可能是通过QQ传输文件或者是真的是Mac电脑上存的文件,格式会有点不同,所以VC编译的时候会报错。

解决方案

1.选择将文件另存为,如图所示

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

2.另存的时候选择 “Save with Encoding”,如图所示

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

3.在Line endings中选择"Windows (CR LF)"

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

再次编译,就通过了。

 

相关文章:

  • 2021-10-29
  • 2021-05-22
  • 2021-09-05
  • 2022-12-23
  • 2022-12-23
  • 2022-02-01
  • 2021-08-19
  • 2021-11-12
猜你喜欢
  • 2021-07-05
  • 2022-12-23
  • 2021-08-14
  • 2021-11-13
  • 2022-03-11
相关资源
相似解决方案