Compilation error with invalid type and undefined variables

In reply to cgales:
I did not use the command line to compile the code. I just compile all in the project section.