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

When you come across this compiling error in Visual Studio, you could re-save the source file with “Advanced Save Options” setting. To address this issue, switch to “File“->”Advanced Save Options“, Select “Window (CR CF)” from the “Line endings” item, select on kind of Windows Encoding method from the “Encoding” item. Just as the following diagram. Then re-save them.  And please make sure that those source files are open before you do with such setting. Otherwise, they will stay there the same.

screen_shot13-300x146 

 

posted @ 2012-08-24 07:21  opencoder  阅读(2982)  评论(0编辑  收藏  举报