Discussion:
Porting to WIN64: error C2371: 'size_t' : redefinition; different basic types
(too old to reply)
Alex Vinokur
2011-01-31 09:11:00 UTC
Permalink
Hi,

I have got "error C2371: 'size_t' : redefinition; different basic
types" while porting to WIN64.

Any suggestions?

Thanks,

Alex


--------------------
Visual Studio 2010

System type: 64-bit operation system


/I"C:\Users\avinokur\Porting2win64\test1\helloWin64_AV\sources\bb
\gabvwin64a\pub_core\adj" /I"D:\3rdParties\boost_1_34_0" /ZI /nologo /
W3 /WX- /Od /Oy- /D "_WINDOWS" /D "NOMINMAX" /D "WIN32" /D "_USRDLL" /
D "_WINDLL" /D "_WIN64" /D "_UNICODE" /D "UNICODE" /Gm /EHsc /RTC1 /
MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fp"Debug
\gabvwin64a.pch" /Fa"Debug\" /Fo"Debug\" /Fd"Debug\vc100.pdb" /Gd /
analyze- /errorReport:queue

d:\program files (x86)\microsoft visual studio 10.0\vc\include
\codeanalysis\sourceannotations.h(27): error C2371: 'size_t' :
redefinition; different basic types [C:\Users
\user1\Porting2win64\test1\helloWin64_AV\sources\bb\gabvwin64a
\gabvwin64a.vcxproj]
c:\users\user1\porting2win64\test1\hellowin64_av
\sources\bb\gabvwin64a\predefined c++ types (compiler internal)(19) :
see declaration of 'size_t'
Bo Persson
2011-01-31 18:17:39 UTC
Permalink
Post by Alex Vinokur
Hi,
I have got "error C2371: 'size_t' : redefinition; different basic
types" while porting to WIN64.
Any suggestions?
Thanks,
Alex
--------------------
Visual Studio 2010
System type: 64-bit operation system
/I"C:\Users\avinokur\Porting2win64\test1\helloWin64_AV\sources\bb
\gabvwin64a\pub_core\adj" /I"D:\3rdParties\boost_1_34_0" /ZI
/nologo / W3 /WX- /Od /Oy- /D "_WINDOWS" /D "NOMINMAX" /D "WIN32"
/D "_USRDLL" / D "_WINDLL" /D "_WIN64" /D "_UNICODE" /D "UNICODE"
/Gm /EHsc /RTC1 / MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope
/Fp"Debug \gabvwin64a.pch" /Fa"Debug\" /Fo"Debug\"
/Fd"Debug\vc100.pdb" /Gd / analyze- /errorReport:queue
d:\program files (x86)\microsoft visual studio 10.0\vc\include
redefinition; different basic types [C:\Users
\user1\Porting2win64\test1\helloWin64_AV\sources\bb\gabvwin64a
\gabvwin64a.vcxproj]
c:\users\user1\porting2win64\test1\hellowin64_av
\sources\bb\gabvwin64a\predefined c++ types (compiler internal)(19)
: see declaration of 'size_t'
Well, the include file sourceannotations.h says that size_t is 64 bits
(unsigned __int64). The compiler says that it is not!

Let me guess that you are actually not using the 64-bit compiler. :-)



Bo Persson

Loading...