This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

cant add .h file in profile directinory.



I need this file but ı cant active it. But I can click simplekeys.c file without any problem

  • Hello,

    How are you adding the file to your project? Are you setting up a softlink or copying the file to your workspace? I would recommend linking.
  • simplekeys.c and simplekey.h files already included simpleBLEPeripheral project. But it was excluded from build. I can click "Excude from build" on simplekeys.c but cant click "exculde from build" on simplekeys.h file
  • simplekeys.c and simplekeys.h files already included simpleBLEPeripharel project. But they setted "Exculde from Build". I can click "Exclude from Build " on simplekeys.c but cant click "Exclude from Build" on simplekeys.h
  • Personally i find the fact that .h files are part of the project a bit confusing. I prefer not to add any .h files. when starting with an example project, i first remove all .h files that are shown in the project explorer. .h files are implicitly included by .c files so you can see them one you did a build by unfolding the triangle in front of the .c file. it will show all .h files that are included but this file (sometimes also .c files are included btw).

    So when you exclude or include a .c file in a built, you are implicitly also excluding or including all it's dependency .h files.

    I hope that helps.