EDN Admin
Well-known member
Hello,<br/> <br/> I am trying to compile Detours 2.1 under VS2008/Win7 RC x64 but I am experiencing a few compiling errors.<br/> <br/> In a VS2008 Cmd Prompt, I type "nmake" and I get:<br/> <br/>
<pre>C
rogram Files (x86)Microsoft ResearchDetours Express 2.1>nmake
Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
Copyright (C) Microsoft Corporation. All rights reserved.
cd "C
rogram Files (x86)Microsoft ResearchDetours Express 2.1src"
Building for 64-bit X64.
if not exist "..include" mkdir "..include"
if not exist "..lib" mkdir "..lib"
if not exist "..bin" mkdir "..bin"
rc detoured.rc
Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
Copyright (C) Microsoft Corporation. All rights reserved.
cl /LD /nologo /W4 /WX /Zi /MTd /Gy /Gm- /Zl /O1 /DWIN32_LEAN_AND_MEAN /
D_WIN32_WINNT=0x403 /D_WIN64 /DDETOURS_X64=1 /D_AMD64_ /Wp64 /Fe..bindetoured.
dll /Fd..bindetoured.pdb detoured.cpp /link /release /machine:amd64 /base:0xf
000000 /incremental:no /subsystem:console /entry
llMain /implib:..libdetoure
d.lib /export
etoured kernel32.lib detoured.res
cl : Command line warning D9035 : option Wp64 has been deprecated and will be
removed in a future release
detoured.cpp
c
rogram files (x86)microsoft visual studio 9.0vcincludecodeanalysissourc
eannotations.h(17) : error C2371: size_t : redefinition; different basic types
detoured.cpp : see declaration of size_t
C
rogram FilesMicrosoft SDKsWindowsv6.0Aincludebasetsd.h(305) : warning C
4311: type cast : pointer truncation from const void * to unsigned long
C
rogram FilesMicrosoft SDKsWindowsv6.0Aincludebasetsd.h(314) : warning C
4311: type cast : pointer truncation from const void * to long
C
rogram FilesMicrosoft SDKsWindowsv6.0Aincludebasetsd.h(323) : warning C
4312: type cast : conversion from unsigned long to void * of greater size
C
rogram FilesMicrosoft SDKsWindowsv6.0Aincludewinnt.h(12935) : error C38
61: __readfsdword: identifier not found
NMAKE : fatal error U1077: "C
rogram Files (x86)Microsoft Visual Studio 9.0
VCBINcl.EXE" : return code 0x2
Stop.
NMAKE : fatal error U1077: "C
rogram Files (x86)Microsoft Visual Studio 9.0
VCBINnmake.exe" : return code 0x2
Stop.
C
rogram Files (x86)Microsoft ResearchDetours Express 2.1>[/code]
As far as I can see, other people have been successful in compiling Detours with VS2008 so there must be a trick to it. Ideas?
View the full article
<pre>C

Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
Copyright (C) Microsoft Corporation. All rights reserved.
cd "C

Building for 64-bit X64.
if not exist "..include" mkdir "..include"
if not exist "..lib" mkdir "..lib"
if not exist "..bin" mkdir "..bin"
rc detoured.rc
Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
Copyright (C) Microsoft Corporation. All rights reserved.
cl /LD /nologo /W4 /WX /Zi /MTd /Gy /Gm- /Zl /O1 /DWIN32_LEAN_AND_MEAN /
D_WIN32_WINNT=0x403 /D_WIN64 /DDETOURS_X64=1 /D_AMD64_ /Wp64 /Fe..bindetoured.
dll /Fd..bindetoured.pdb detoured.cpp /link /release /machine:amd64 /base:0xf
000000 /incremental:no /subsystem:console /entry

d.lib /export

cl : Command line warning D9035 : option Wp64 has been deprecated and will be
removed in a future release
detoured.cpp
c

eannotations.h(17) : error C2371: size_t : redefinition; different basic types
detoured.cpp : see declaration of size_t
C

4311: type cast : pointer truncation from const void * to unsigned long
C

4311: type cast : pointer truncation from const void * to long
C

4312: type cast : conversion from unsigned long to void * of greater size
C

61: __readfsdword: identifier not found
NMAKE : fatal error U1077: "C

VCBINcl.EXE" : return code 0x2
Stop.
NMAKE : fatal error U1077: "C

VCBINnmake.exe" : return code 0x2
Stop.
C

As far as I can see, other people have been successful in compiling Detours with VS2008 so there must be a trick to it. Ideas?
View the full article