Skip to content

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

Description

@nitrocode

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions