Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

building issue GetThreadLocale': undeclared identifier #202

Closed
djn3m0 opened this issue May 14, 2021 · 1 comment
Closed

building issue GetThreadLocale': undeclared identifier #202

djn3m0 opened this issue May 14, 2021 · 1 comment
Labels

Comments

@djn3m0
Copy link

djn3m0 commented May 14, 2021

Hi,

Im trying to build Microsoft Detours for x64 and this is the error I get, I managed to build this correctly few days ago but now I cannot build it again! I couldn't find what could be wrong :(

SET DETOURS_TARGET_PROCESSOR=X64
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
NMAKE

Microsoft (R) Program Maintenance Utility Version 14.28.29915.0
Copyright (C) Microsoft Corporation.  All rights reserved.

        cd "C:\Users\User1\Desktop\Detours-4.0.1\Detours-4.0.1"
        cd "C:\Users\User1\Desktop\Detours-4.0.1\Detours-4.0.1\src"
 Created ..\include
 Created ..\lib.X64
 Created ..\bin.X64
 Created obj.X64
        cl /W4 /WX /Zi /MT /Gy /Gm- /Zl /Od /DWIN32_LEAN_AND_MEAN /D_WIN32_WINNT=0x501 /Fd..\lib.X64\detours.pdb /Foobj.X64\ /c detours.cpp modules.cpp disasm.cpp image.cpp creatwth.cpp disolx86.cpp disolx64.cpp disolia64.cpp disolarm.cpp disolarm64.cpp
Microsoft (R) C/C++ Optimizing Compiler Version 19.28.29915 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.
...
...
...
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
Copyright (C) Microsoft Corporation.  All rights reserved.

        cl /nologo /Zi /MT /Gm- /W4 /WX /Od /I..\..\include /Fdobj.X64\vc.pdb /Foobj.X64\ /c trcapi.cpp
trcapi.cpp
C:\Users\User1\Desktop\Detours-4.0.1\Detours-4.0.1\samples\traceapi\_win32.cpp(4323): error C2065: 'GetThreadLocale': undeclared identifier
C:\Users\User1\Desktop\Detours-4.0.1\Detours-4.0.1\samples\traceapi\_win32.cpp(7050): error C2065: 'SetThreadLocale': undeclared identifier
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\HostX64\x64\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\HostX64\x64\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\HostX64\x64\nmake.exe"' : return code '0x2'
Stop.

C:\Users\User1\Desktop\Detours-4.0.1\Detours-4.0.1>cd samples\traceapi

C:\Users\User1\Desktop\Detours-4.0.1\Detours-4.0.1\samples\traceapi>nmake

Microsoft (R) Program Maintenance Utility Version 14.28.29915.0
Copyright (C) Microsoft Corporation.  All rights reserved.

        cl /nologo /Zi /MT /Gm- /W4 /WX /Od /I..\..\include /Fdobj.X64\vc.pdb /Foobj.X64\ /c trcapi.cpp
trcapi.cpp
C:\Users\User1\Desktop\Detours-4.0.1\Detours-4.0.1\samples\traceapi\_win32.cpp(4323): error C2065: 'GetThreadLocale': undeclared identifier
C:\Users\User1\Desktop\Detours-4.0.1\Detours-4.0.1\samples\traceapi\_win32.cpp(7050): error C2065: 'SetThreadLocale': undeclared identifier
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29910\bin\HostX64\x64\cl.EXE"' : return code '0x2'
Stop.

Please let me know how I can fix this issue,
Thanks

@djn3m0
Copy link
Author

djn3m0 commented May 15, 2021

I cloned the latest version and it worked perfectly!

@djn3m0 djn3m0 closed this as completed May 15, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Jun 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant