יום חמישי 08 ינואר 2009 21:06Hello,
Getting error c4335 when building project in VS2008 . Was getting a dialog box to convert but no more! These files are from a unix. Please help!!!
יום שני 12 ינואר 2009 07:21Hi,
I am not very clear about your project. However, as the error message indicated that Mac file format is detected. The line termination character of the first line of a source file is Mac style (‘\r’) as opposed to UNIX (‘\n’) or DOS (‘\r\n’). You can try to set the the Advanced Save Options (File menu) in Visual Studio.
Please mark the replies as answers if they help and unmark if they don't.
- סומן כתשובה על-ידי Rong-Chun Zhang יום חמישי 15 ינואר 2009 03:41
יום חמישי 15 יולי 2010 12:05in Visual Studio:
Go to "file" -> "Advance Save" then a dialog box will open
In that Dialog box see the drop down option titled "Line Ending"
see the drop down menu and select "Windows (CR LF)"
And Cheers!!! your problem is solved :)
יום ראשון 10 יוני 2012 16:13This was the same error message I faced, after a recent series of Windows updates, when I was copying and pasting from notepad to a VS2010 express .cpp page.
The "Windows (CR LF)" response was the correct solution in this case.
I did notice that when I cut and paste the instance prior to the compile error message, that the pasted .cpp page added extra line spaces which I found odd because it hadn't happened before.
Thanks for your help and assistance.