for compiling problems, solved starting a new project and then copyng the code from the old file. (maybe I did some wrong action in the old)
for linking problem, searching in internet after some steps I found taht the libraries to include was stdc++ and rt.
angman