Discussion:
d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocnum(664) : error C4244: '=' : conversion from 'int' to 'char', possible loss of data
(too old to reply)
Sree
2003-11-14 09:22:19 UTC
Permalink
I am getting the following error using Visual Studio.NET 2003 when I tried
to compile the same workspace that compiles fine in Visual Studio 6.
Could any one help me is solving this problem
Any help would be greatly appreciated..



d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocnum(664)
: error C4244: '=' : conversion from 'int' to 'char', possible loss of data
d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocnum(636)
: while compiling class-template member function 'int
std::num_get<_Elem,_InIt>::_Getffld(char *,_InIt &,_InIt &,const std::locale
&) const'
with
[
_Elem=wchar_t,
_InIt=std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>
]
d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocnum(1298)
: see reference to class template instantiation 'std::num_get<_Elem,_InIt>'
being compiled
with
[
_Elem=wchar_t,
_InIt=std::istreambuf_iterator<wchar_t,std::char_traits<wchar_t>>
]
Vincent Finn
2003-11-14 14:12:12 UTC
Permalink
Post by Sree
d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocnum(664)
: error C4244: '=' : conversion from 'int' to 'char', possible loss of data
Did you actually cut this from the output window?
C4244 is a warning not an error, even if you have "treat warnings as
errors" it is still displayed as a warning

The reason it would appear in VC7 and not VC6 is because it was a
Level 4 warning in VC6 and it's a Level 3 in VC7

It shouldn't be an error.

Vin
Sree
2003-11-15 19:00:01 UTC
Permalink
yes I did..
Here is the Build log..
Build Log ------- Build started: Project: DSPInterestRates,
Configuration: Debug|Win32 -------

Command Lines Creating temporary file "d:\Hsbc\Branches\Version
3.00.00\dsp\Debug\RSP00000E.rsp" with contents
[
/Od /D "_DEBUG" /D "_LIB" /D "WIN32" /D "_MBCS" /FD /EHsc /MDd
/Fp".\../Debug/DSPInterestRates.pch" /Fo".\../Debug/" /Fd".\../Debug/"
/FR".\../Debug/" /W0 /c /ZI /Gd /TP /FI "dspMSSucks.h"
".\dspCapVolSimple.cpp"
]
Creating command line "cl.exe @"d:\Hsbc\Branches\Version
3.00.00\dsp\Debug\RSP00000E.rsp" /nologo"
Output Window Compiling...
dspCapVolSimple.cpp
d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocnum(664)
: error C4244: '=' : conversion from 'int' to 'char', possible loss of data
d:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\include\xlocnum(636) : while compiling class-template member
function 'int std::num_get<_Elem,_InIt>::_Getffld(char *,_InIt &,_InIt
&,const std::locale &) const'
with
[
_Elem=wchar_t,
_InIt=std::istreambuf_iterator>
]
d:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\include\xlocnum(1298) : see reference to class template
instantiation 'std::num_get<_Elem,_InIt>' being compiled
with
[
_Elem=wchar_t,
_InIt=std::istreambuf_iterator>
]
d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocnum(683)
: error C4244: '=' : conversion from 'int' to 'char', possible loss of data
d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocnum(736)
: error C4244: '=' : conversion from 'int' to 'char', possible loss of data
d:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocnum(762)
: error C4244: '=' : conversion from 'int' to 'char', possible loss of data
Results Build log was saved at "file://d:\Hsbc\Branches\Version
3.00.00\dsp\Debug\BuildLog.htm"
DSPInterestRates - 4 error(s), 0 warning(s) I have checked the Project
settings ...Warning Level : offTreat Warning as Errors :NoFurther help is
greatly apppreciated....ThanksSree
Post by Vincent Finn
Post by Sree
d:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\include\xlocnum(664)
Post by Vincent Finn
Post by Sree
: error C4244: '=' : conversion from 'int' to 'char', possible loss of data
Did you actually cut this from the output window?
C4244 is a warning not an error, even if you have "treat warnings as
errors" it is still displayed as a warning
The reason it would appear in VC7 and not VC6 is because it was a
Level 4 warning in VC6 and it's a Level 3 in VC7
It shouldn't be an error.
Vin
Vincent Finn
2003-11-17 10:04:36 UTC
Permalink
Post by Sree
yes I did..
Can you get it to happen in a small piece of code?
small enough to be posted?

Vin

Loading...