Well, the linker is complaining about two files in particular, the ones that contain QgsVectorLayer and QgsRasterLayer. I don't see that listed in your build output, so you either forgot to include them in the project or you are not linking to the object files or library that contains them.