swprintf.inl中的错误 [英] Errors in swprintf.inl

查看:200
本文介绍了swprintf.inl中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在XP上安装了VS2005。

当我将项目从VS2003运到2005时,当我编译单个文件时,我在swprintf.inl中遇到了很多错误。



例如:



1> c:\ program Files \ microsoft visual studio 8 \\ \\ vc\include\swprintf.inl(36):错误C2065:''_ String'':未声明的标识符

1> c:\ program Files \ microsoft visual studio 8 \ vc \include \swprintf.inl(36):错误C2275:''size_t'':非法使用此类型作为表达式

1> c:\ conferencre sacha stern \ conference 2012\testvs\testvs\testvs.cpp:看'size_t'的声明'



我怀疑腐败在安装中,并重新安装它,但这没有任何区别。



即使我创建了一个新项目,无论是控制台还是Win32,都没有通话printf或相关功能。



这个疯狂行为有什么答案吗?

RaymondM

I have VS2005 installed on XP.
When I transported a project from VS2003 to 2005 I get a lot of errors in swprintf.inl when I compile individual files.

For example:

1>c:\program files\microsoft visual studio 8\vc\include\swprintf.inl(36) : error C2065: ''_String'' : undeclared identifier
1>c:\program files\microsoft visual studio 8\vc\include\swprintf.inl(36) : error C2275: ''size_t'' : illegal use of this type as an expression
1> c:\conferencre sacha stern\conference 2012\testvs\testvs\testvs.cpp : see declaration of ''size_t''

I suspected corruption in the installation, and reinstalled it, but that makes no difference.

It happens even when I create a new project, whether console or Win32, where there is no call to printf or related functions.

Is there any answer to this crazy behaviour ?
RaymondM

推荐答案

自从你从VS 2003搬到2005年以来,你做过一次彻底的清理和重建吗?

看看那个文件,看看第36行是什么。当我检查了它包含在我的系统上的版本:

Have you done a complete clean and rebuild since you moved from VS 2003 to 2005?
Take a look at that file and see what is on line 36. When I checked the version on my system it contains:
static __inline int swprintf(wchar_t * _String, size_t _Count, const wchar_t * _Format, ...)



看起来完全合法。


which looks perfectly legal.


在错误报告中调用的文件swprintf.inl与所有早期安装ov VW中的相同。问题肯定是不应该调用它。在设置为测试的项目中,我不会对自动创建的代码添加任何内容,因此不应该发生此问题。
The file swprintf.inl that is called in the error report is the same as in all the earlier installations ov VW. The problem is surely that this should not be called anyway. In the project set up to test I add nothing to the code that is automatically created, so this problem just should not happen.


这篇关于swprintf.inl中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆