@cabot364
thanks for the tip, but i get new errors

collect2: error: ld returned 1 exit status
src/CMakeFiles/daemon.dir/build.make:109: recipe for target 'src/bitnoted' failed
make[3]: *** [src/bitnoted] Error 1
make[3]: Leaving directory '/root/bitnote/build/release'
CMakeFiles/Makefile2:216: recipe for target 'src/CMakeFiles/daemon.dir/all' failed
make[2]: *** [src/CMakeFiles/daemon.dir/all] Error 2
make[2]: Leaving directory '/root/bitnote/build/release'
Makefile:138: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/root/bitnote/build/release'
Makefile:20: recipe for target 'build-release' failed
make: *** [build-release] Error 2
ybelevi I had this error compiling in Ubuntu 17. I fixed it by remedying the "All warnings being treated as errors".
What you need to do is clone the github. Go into your bitnote directory and grep search for "Werror *"
it will show up in 2 or 3 files. You then need to VI into those files (I believe they are all cmaker files) and DELETE any place you see Werror. Save those files, recompile...it will throw the warnings but not stop compilation. In the end, the wallet works. I have been mining since last night and receiving payments.