Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Porting to WIN64: error C2371: 'size_t' : redefinition; different basic types

2,811 views
Skip to first unread message

Alex Vinokur

unread,
Jan 31, 2011, 4:11:00 AM1/31/11
to
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

unread,
Jan 31, 2011, 1:17:39 PM1/31/11
to

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


0 new messages