microsoft / Detours

Detours is a software package for monitoring and instrumenting API calls on Windows. It is distributed in source code form.
MIT License
5k stars 978 forks source link

NMAKE failing at the end. #287

Open layer07 opened 1 year ago

layer07 commented 1 year ago

cl /nologo /Zi /MT /Gm- /W4 /WX /Od /I....\include /Fdobj.X86\vc.pdb /Foobj.X86\ /c trcapi.cpp trcapi.cpp I:\ZZZ\Detours-4.0.1\samples\traceapi_win32.cpp(4323): error C2065: 'GetThreadLocale': undeclared identifier I:\ZZZ\Detours-4.0.1\samples\traceapi_win32.cpp(7050): error C2065: 'SetThreadLocale': undeclared identifier NMAKE : fatal error U1077: 'cl /nologo /Zi /MT /Gm- /W4 /WX /Od /I....\include /Fdobj.X86\vc.pdb /Foobj.X86\ /c trcapi.cpp ' : return code '0x2' Stop. NMAKE : fatal error U1077: 'C:\VS\IDE\VC\Tools\MSVC\14.36.32532\bin\HostX86\x86\nmake.exe /NOLOGO /L ' : return code '0x2' Stop. NMAKE : fatal error U1077: 'C:\VS\IDE\VC\Tools\MSVC\14.36.32532\bin\HostX86\x86\nmake.exe /NOLOGO / ' : return code '0x2' Stop. D3V

thgiang commented 11 months ago

Same here

jcbastosportela commented 10 months ago

same here

lianhfangjie12345 commented 9 months ago

I also encountered this error, and then I found that GetThreadLocale and SetThreadLocale are in WinNls.h. The following is like this: ~WV4SCLD}%@)IK1QO@72MU3 So I changed the system version number defined in trcapi to 0x500, but I’m not sure what the negative consequences might be. E``JVED1BGL_9U@CWIH 3}R

jakydibe commented 9 months ago

I also encountered this error, and then I found that GetThreadLocale and SetThreadLocale are in WinNls.h. The following is like this:

idk but it worked ahahahah. did you find some errors when u used detours after you made this change?