gpt4 book ai didi

C++ : File format error

转载 作者:行者123 更新时间:2023-11-28 05:33:20 25 4
gpt4 key购买 nike

在使用 vs 2005 编译 c++ 代码时,出现以下与 mac 文件格式相关的错误。对于这个特定错误,我在互联网上找不到任何引用。有人可以帮我解决这个问题。

错误 C4335:检测到 Mac 文件格式:请将源文件转换为 DOS 或 UNIX 格式 未定义 WINVER。默认为 0x0502 (Windows Server 2003)

最佳答案

根据MSDN :

The line termination character of the first line of a source file is Macintosh style (‘\r’) as opposed to UNIX (‘\n’) or DOS (‘\r\n’).

所以只需更改文件的行尾即可。为此,请转到 File -> Advanced Save Options -> Set line endings to Windows

关于C++ : File format error,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38902155/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com