ntpopgetdope / ida-rpc

Discord rich presence plugin for IDA Pro 7.0
MIT License
86 stars 12 forks source link

Can't build project on Visual Studio 2017/2019 - Xmemory Error #7

Closed slava-aes closed 2 years ago

slava-aes commented 3 years ago

The binary file works just fine, but I wanted to clone the rep to make some minor modifications. I am however getting the following errors:

Severity    Code    Description Project File    Line    Suppression State
Error   C2059   syntax error: 'constant'    ida-rpc c:\program files (x86)\microsoft visual studio\2017\professional\vc\tools\msvc\14.16.27023\include\xmemory  102 
Error   C2334   unexpected token(s) preceding '{'; skipping apparent function body  ida-rpc c:\program files (x86)\microsoft visual studio\2017\professional\vc\tools\msvc\14.16.27023\include\xmemory  103 
Error   C2059   syntax error: 'constant'    ida-rpc c:\program files (x86)\microsoft visual studio\2017\professional\vc\tools\msvc\14.16.27023\include\xmemory  168 
Error   C2334   unexpected token(s) preceding '{'; skipping apparent function body  ida-rpc c:\program files (x86)\microsoft visual studio\2017\professional\vc\tools\msvc\14.16.27023\include\xmemory  169 
Error   C2059   syntax error: 'constant'    ida-rpc c:\program files (x86)\microsoft visual studio\2017\professional\vc\tools\msvc\14.16.27023\include\xmemory  102 
Error   C2334   unexpected token(s) preceding '{'; skipping apparent function body  ida-rpc c:\program files (x86)\microsoft visual studio\2017\professional\vc\tools\msvc\14.16.27023\include\xmemory  103 
Error   C2059   syntax error: 'constant'    ida-rpc c:\program files (x86)\microsoft visual studio\2017\professional\vc\tools\msvc\14.16.27023\include\xmemory  168 
Error   C2334   unexpected token(s) preceding '{'; skipping apparent function body  ida-rpc c:\program files (x86)\microsoft visual studio\2017\professional\vc\tools\msvc\14.16.27023\include\xmemory  169 

The offending lines appear to be 102 and 103:

    _FwdIt _Release()
        {   // suppress any exception handling backout and return _Last
        _First = _Last;
        return (_Last);
        }
    };

What gives?