在 vista32bit 上出现错误 C2039,而相同的代码在 XP 上可以正常工作

发布于 2024-11-07 09:24:02 字数 1064 浏览 0 评论 0原文

我使用的是 Visual Studio 2005。我在 XP Windows 中执行了我的代码并且它工作正常,但是当我想在 Vista32 中执行相同的操作时,它开始显示这些似乎很奇怪的错误。我进行了很多搜索,发现这是一个常见问题,但我找不到任何明确且有用的解决方案。如果有人提供帮助,我将非常感激。

错误 1 ​​错误 C2039:“_strtoi64”:不是“全局命名空间”c:\program files\microsoft Visual Studio 8\vc\include\xlocnum 469 的成员

错误 2 错误 C3861:“_strtoi64”:找不到标识符 c:\program files\microsoft Visual Studio 8\vc\include\xlocnum 469

错误 3 错误 C2039:“_strtoi64”:不是“全局命名空间”c:\program files\microsoft Visual Studio 8\vc\include\xlocnum 469 的成员

错误 4 错误 C3861:“_strtoi64”:找不到标识符 c:\program files\microsoft Visual Studio 8\vc\include\xlocnum 469

错误 5 错误 C2039:“_strtoi64”:不是“全局命名空间”c:\program files\microsoft Visual Studio 8\vc\include\xlocnum 469 的成员

错误 6 错误 C3861:“_strtoi64”:找不到标识符 c:\program files\microsoft Visual Studio 8\vc\include\xlocnum 469

错误 41 错误 C2039:“_strtoi64”:不是“全局命名空间”c:\program files\microsoft Visual Studio 8\vc\include\xlocnum 469 的成员

错误 42 错误 C3861:“_strtoi64”:找不到标识符 c:\program files\microsoft Visual Studio 8\vc\include\xlocnum 469

I'm using visual studio 2005. I executed my code in XP windows and it worked correctly, but when I want to do the same in vista32 it starts to say these errors which seems strange. I've searched a lot and found this a common problem but I couldn't find any clear and useful solution. If some body helps I would appreciate it very much.

Error 1 error C2039: '_strtoi64' : is not a member of '`global namespace'' c:\program files\microsoft visual studio 8\vc\include\xlocnum 469

Error 2 error C3861: '_strtoi64': identifier not found c:\program files\microsoft visual studio 8\vc\include\xlocnum 469

Error 3 error C2039: '_strtoi64' : is not a member of '`global namespace'' c:\program files\microsoft visual studio 8\vc\include\xlocnum 469

Error 4 error C3861: '_strtoi64': identifier not found c:\program files\microsoft visual studio 8\vc\include\xlocnum 469

Error 5 error C2039: '_strtoi64' : is not a member of '`global namespace'' c:\program files\microsoft visual studio 8\vc\include\xlocnum 469

Error 6 error C3861: '_strtoi64': identifier not found c:\program files\microsoft visual studio 8\vc\include\xlocnum 469

Error 41 error C2039: '_strtoi64' : is not a member of '`global namespace'' c:\program files\microsoft visual studio 8\vc\include\xlocnum 469

Error 42 error C3861: '_strtoi64': identifier not found c:\program files\microsoft visual studio 8\vc\include\xlocnum 469

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

红ご颜醉 2024-11-14 09:24:02

检查 Visual Studio 依赖项和项目依赖项中的 Include 部分。也许您包含一些带有旧 SDK 中的 std 标头的目录。标准目录应该位于列表的顶部。

Check Include section in Visual Studio dependency and project dependency. Maybe you include some directory with std headers from old SDK. Standard directories should be on the top of the list.

冷情 2024-11-14 09:24:02

我只是卸载并重新安装了 Visual 2005,令人惊讶的是它有效,感谢您的所有建议。

问候

I just uninstall and again reinstall the visual 2005 and surprisingly it worked, tnx for all your advices.

regards

何其悲哀 2024-11-14 09:24:02

有人引用了函数 strtoi64( ),它将 C 字符串转换为 64 位整数。但你运行的是32位系统所以没有这个功能。首先,我会查看有问题的文件,该文件

c:\program files\microsoft visual studio 8\vc\include\xlocnum

位于第 469 行或其周围(无论是什么),看看那个人想要做什么。

在我看来,当 VS 安装到 Vista 机器上时,有人以某种方式启用了 64 位编译,因此在我看来,您可能必须检查 VC 配置以确保它们都是 32 位设置。

Somebody is referencing the function strtoi64( ), which converts a C-string to a 64-bit integer. But you are running on a 32-bit system so there is no such function. First, I would look into the offending file, which is somewhere in or around

c:\program files\microsoft visual studio 8\vc\include\xlocnum

(whatever that is) at line 469 to see what that guy is trying to do.

It seems likely to me that when VS was installed onto the Vista machine, someone somehow enabled 64-bit compilation, so imo you will probably have to go through the VC configs to make sure they are all 32-bit settings.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文