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

vc裏面遇到這個問題的解決方案

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

原因

很有可能是通過QQ傳輸文件或者是真的是Mac電腦上存的文件,格式會有點不同,所以VC編譯的時候會報錯。

解決方案

1.選擇將文件另存爲,如圖所示

2.另存的時候選擇 “Save with Encoding”,如圖所示

3.在Line endings中選擇"Windows (CR LF)"

再次編譯,就通過了。

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章