本文介绍了我怎样才能删除“错误 C4335:检测到 Mac 文件格式"?在 VC 2008的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在用VC++ 2008编译一个项目,得到的错误如下:

I am now compiling a project with VC++ 2008, and the error I have obtained is as follows:

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

我想知道如何解决此类错误.我发现此链接很有用,但该解决方案适用于 VC++ 2010 而不是 VC++ 2008.任何建议将不胜感激.

I was wondering how I could solve this kind of errors. I have found this link useful but the solution is suitable for VC++ 2010 rather than VC++ 2008. Any suggestion will be appreciated.

推荐答案

对于 VS2012,在解决方案资源管理器中选择并打开文件.文件->高级保存选项->设置编码:西欧(Windows)&&设置行尾:Unix

For VS2012 select and open the file within solution explorer. File->Advanced Save Options-> Set Encoding: Western European (Windows) && Set Line endings: Unix

这篇关于我怎样才能删除“错误 C4335:检测到 Mac 文件格式"?在 VC 2008的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 17:31