1 Reply Latest reply on May 8, 2019 4:40 AM by AnkitaS_51

    main.h file error dispalying, PSoC Creator


      Hello everyone,


      I'm trying to combine 3 aspects from different example projects into one  project. - RGB control - Battery level measurement - Temperature simulation


      When I try to build the project and error message is displayed, stating that the main.h file can't be found. I don't know why this error is being shown.


      I've attached my project to this post. If anyone could help me out with this problem I'd be really grateful, Thanks.



      Kind regards,

      Alisha Khan

        • 1. Re: main.h file error dispalying, PSoC Creator

          Hello Alisha,


          If you want to add any file in a project in Creator which is  at a path  outside .cydsn project folder then add the path of that file  in Build settings>Compiler>General>Additional Include Directories.


          Follow these steps then:

          >>Right click the main.h file with question mark and exclude it

          >>Next, include it again by right clicking the Header files and choosing Add >Existing Item option.


          I did so and I was able to clear that build error associated with main.h being missing.


          But certain other errors are there in the project which are related to undeclared variables.