Also, I have this error :
cannot include source file "PSoCAPI.h"; file not found
You will have to perform the "Generate" step before building the project.You can use "Generate/Build Current Project" from the "Build" main menu or use the F6 key.
The generate step produces C and Assembly source files from the PSoC visual design. This is the distinction between PSoC and other MCUs.