error C4335: Mac file format detected: please convert the source file to either DOS or UNIX format
生活随笔
收集整理的這篇文章主要介紹了
error C4335: Mac file format detected: please convert the source file to either DOS or UNIX format
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
vc里面遇到這個(gè)問(wèn)題的解決方案
error C4335: Mac file format detected: please convert the source file to either DOS or UNIX format
原因
很有可能是通過(guò)QQ傳輸文件或者是真的是Mac電腦上存的文件,格式會(huì)有點(diǎn)不同,所以VC編譯的時(shí)候會(huì)報(bào)錯(cuò)。
解決方案
1.選擇將文件另存為,如圖所示
2.另存的時(shí)候選擇 “Save with Encoding”,如圖所示
3.在Line endings中選擇"Windows (CR LF)"
再次編譯,就通過(guò)了。
?
總結(jié)
以上是生活随笔為你收集整理的error C4335: Mac file format detected: please convert the source file to either DOS or UNIX format的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 什么是死锁?为什么会死锁?如何解决死锁问
- 下一篇: 如何在程序中生成崩溃转储dump文件以及