Reverse-Engineering-Tutorials icon indicating copy to clipboard operation
Reverse-Engineering-Tutorials copied to clipboard

crack-me cannot compile because "system" was not declared in the scope

Open nitrocode opened this issue 6 years ago • 0 comments
trafficstars

I'm on linux and had to also include cstdlib to compile crack-me in the first tutorial

✗ g++ crack-me.cpp -o crack-me
crack-me.cpp: In function ‘void secret()’:
crack-me.cpp:17:23: error: ‘system’ was not declared in this scope
    system("uname -a\n");

Added and it compiles correctly with g++ 5.4.0

#include <cstdlib>

Maybe my g++ version is too old.

nitrocode avatar Dec 22 '18 23:12 nitrocode