Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How could I remove "error C4335: Mac file format detected" in 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

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.

like image 681
feelfree Avatar asked Dec 06 '12 11:12

feelfree


3 Answers

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

like image 121
Tez Avatar answered Oct 28 '22 19:10

Tez


You can use this addon to make the conversions automatically across your project, it's extremely easy.

like image 43
Jon Avatar answered Oct 28 '22 19:10

Jon


Just save it in the format you want; VC+ 2008: http://msdn.microsoft.com/en-us/library/aad7fash(v=vs.90).aspx

like image 44
SomeWittyUsername Avatar answered Oct 28 '22 19:10

SomeWittyUsername