Click here to Skip to main content
15,879,326 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Posted

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:
C++
static __inline int swprintf(wchar_t * _String, size_t _Count, const wchar_t * _Format, ...)

which looks perfectly legal.
 
Share this answer
 
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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900