如何删除“错误C4335:检测到Mac文件格式”在VC 2008 [英] How could I remove "error C4335: Mac file format detected" in VC 2008

查看:377
本文介绍了如何删除“错误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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆