Discussion:
'SIZE_T' : redefinition; different basic types
(too old to reply)
Sivaraj
2011-05-20 05:46:18 UTC
Permalink
Hello,

I am integrating our own library built using VS 2008 with one of the
dsf application in WinDDK 7600.16385.1.

I am getting the error "'SIZE_T' : redefinition; different basic
types". Could anyone help how to solve this issue? Please let me know
if more details are required.

Below is the complete build log for reference.

C:\WinDDK\7600.16385.1\src\test\dsf\usb\softusbloopback>build
BUILD: Compile and Link for x86
BUILD: Loading c:\winddk\7600.16385.1\build.dat...
BUILD: Computing Include file dependencies:
BUILD: Start time: Fri May 20 11:10:39 2011
BUILD: Examining c:\winddk\7600.16385.1\src\test\dsf\usb
\softusbloopback directo
ry for files to compile.
c:\winddk\7600.16385.1\src\test\dsf\usb\softusbloopback
Invalidating OACR wa
rning log for 'WDKSamples:x86chk'
c:\winddk\7600.16385.1\src\test\dsf\usb\softusbloopback - 1 Pass
Zero files
(120 lines)
BUILD: Saving c:\winddk\7600.16385.1\build.dat...
BUILD: Building generated files in c:\winddk\7600.16385.1\src\test\dsf
\usb\softu
sbloopback directory
Configuring OACR for 'WDKSamples:x86chk' - <OACR on>
_NT_TARGET_VERSION SET TO WINXP
BUILD: Examining c:\winddk\7600.16385.1\src\test\dsf\usb
\softusbloopback directo
ry for files to compile. (2nd Pass)
c:\winddk\7600.16385.1\src\test\dsf\usb\softusbloopback - 1 source
files (1,
147 lines)
BUILD: Compiling c:\winddk\7600.16385.1\src\test\dsf\usb
\softusbloopback directo
ry
_NT_TARGET_VERSION SET TO WINXP
Compiling - loopbackdevice.cpp
1>errors in directory c:\winddk\7600.16385.1\src\test\dsf\usb
\softusbloopback
1>e:\sandbox\sample\source\\i\def\stdtypes.h(111) : error C2371:
'SIZE_T' : redefinition; different basic types
1>e:\sandbox\sample\source\i\def\stdtypes.h(111) : error C2371:
'PSIZE_T' : redefinition; different basic types
Building Library - objchk_wxp_x86\i386\softusbloopback.lib
1>link : error LNK1181: cannot open input file 'c:\winddk
\7600.16385.1\src\test\
dsf\usb\softusbloopback\objchk_wxp_x86\i386\loopbackdevice.obj'
BUILD: Compile errors: not linking c:\winddk\7600.16385.1\src\test\dsf
\usb\softu
sbloopback directory
BUILD: Finish time: Fri May 20 11:10:53 2011
BUILD: Done

3 files compiled - 2 Errors - 1,147 LPS
1 library built - 1 Error
Burkhardt Braun
2011-05-20 13:31:22 UTC
Permalink
Hello!
Post by Sivaraj
1>errors in directory c:\winddk\7600.16385.1\src\test\dsf\usb
\softusbloopback
'SIZE_T' : redefinition; different basic types
'PSIZE_T' : redefinition; different basic types
Building Library - objchk_wxp_x86\i386\softusbloopback.lib
1>link : error LNK1181: cannot open input file 'c:\winddk
\7600.16385.1\src\test\
dsf\usb\softusbloopback\objchk_wxp_x86\i386\loopbackdevice.obj'
BUILD: Compile errors: not linking c:\winddk\7600.16385.1\src\test\dsf
This issue is seemingly caused by a wrong include path in the DDK
environment.
I have the same DDK and no stdtypes.h

Kind regards
Burkhardt Braun

Loading...