teaandcode / TestChain

TestChain C++ tutorial
MIT License
94 stars 71 forks source link

'time' was not declared in this scope #4

Closed ghost closed 6 years ago

ghost commented 6 years ago

l\blocktuto.cpp:11: erreur : 'time' was not declared in this scope _tTime = time(nullptr); ^

knasher commented 6 years ago

blocktuto.cpp is not a file in the project, you should try cloning the repo and compiling before making changes; here's the command to compile the project:

gcc -lstdc++ \
    -o TestChain \
    -std=c++11 \
    -stdlib=libc++ \
    -x c++ \
    main.cpp Block.cpp Blockchain.cpp sha256.cpp