Detours icon indicating copy to clipboard operation
Detours copied to clipboard

NMAKE failing at the end.

Open layer07 opened this issue 2 years ago • 5 comments

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

layer07 avatar Jun 05 '23 18:06 layer07

Same here

thgiang avatar Aug 01 '23 18:08 thgiang

same here

jcbastosportela avatar Aug 19 '23 23:08 jcbastosportela

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

lianhfangjie12345 avatar Sep 22 '23 13:09 lianhfangjie12345

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?

jakydibe avatar Oct 05 '23 09:10 jakydibe