Microsoft nuisance of the day
by jegeblad
As an iPhone developer you would think that I would be more concerned with dealing with limitations in XCode, the iPhone SDK and Apple's review process, but a large portion of my time I work on non-iPhone projects. Today I was sitting with a c-file that I first edited with Textmate. When I tried to compile it with Visual Studio I got the following warning message:
"error C4335: Mac file format detected: please convert the source file to either DOS or UNIX format"
This is really ridiculous. The file looks absolutely fine in the Visual Studio editor, so what's wrong? Microsoft doesn't give a hint as to how it can be converted or what is so Mac-like about the file.
How to solve it? Well I just selected all, copied all to the clipboard, deleted all, and pasted from the clipboard.
I still don't know what was Mac about the file, but it is amazing that Visual Studio's compiler cannot handle it since it can easily handle DOS or Unix file. The encoding looked OK, so the only thing I can think of that distinguished this file is line-endings. Great that we still have that problem today.
BTW: Even though I though a lot of cross development on Windows and Mac I have never experienced this error before.
08/31/09 01:45:31 pm,