0xnobody / vmpdump

A dynamic VMP dumper and import fixer, powered by VTIL.
GNU General Public License v3.0
1.15k stars 210 forks source link

error C3861: '__builtin_ctz': identifier not found #16

Closed AkumaRRR closed 3 years ago

AkumaRRR commented 3 years ago

In compiling the project I get

C:\Users\XXX\vmpdump-master\VMPDump\winpe\nt_headers.hpp(183,75): error C3861: '__builtin_ctz': identifier
 not found [C:\Users\XXX\vmpdump-master\build\VMPDump\VMPDump.vcxproj]
  module_view.cpp
C:\Users\XXX\vmpdump-master\VMPDump\winpe\nt_headers.hpp(183,75): error C3861: '__builtin_ctz': identifier
 not found [C:\Users\XXX\vmpdump-master\build\VMPDump\VMPDump.vcxproj]
  pe_constructor.cpp
C:\Users\XXX\vmpdump-master\VMPDump\winpe\nt_headers.hpp(183,75): error C3861: '__builtin_ctz': identifier
 not found [C:\Users\XXX\vmpdump-master\build\VMPDump\VMPDump.vcxproj]
  vmpdump.cpp
C:\Users\XXX\vmpdump-master\VMPDump\winpe\nt_headers.hpp(183,75): error C3861: '__builtin_ctz': identifier
 not found [C:\Users\XXX\vmpdump-master\build\VMPDump\VMPDump.vcxproj]
AkumaRRR commented 3 years ago

I managed to compile by using _tzcnt_u32 instead of __builtin_ctz. I hope it works the same.