This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Getting "No Source file" even after adding it to "User include directories"

Hi Nordic,

I have  added new files to my project and added their path to user include directories of common configurations. When I build I am getting this error "No Source file" . Should I add the path of the file in the files wherever they are included? Or adding path once is all to build the entire project?

Thanks in advance,

Nirupama.T

Parents Reply
  • You need to remember to add the c files to the project & then include the header (.h) files too. If all of your header files are located in one folder (e.g. nRF5_SDK_15.2.0_9412b96\examples\ble_peripheral\ble_app_blinky\pca10040\s132\config), you only need to include the path to this folder & not the path to all of the header files (i.e. nRF5_SDK_15.2.0_9412b96\examples\ble_peripheral\ble_app_blinky\pca10040\s132\config), not (i.e. nRF5_SDK_15.2.0_9412b96\examples\ble_peripheral\ble_app_blinky\pca10040\s132\config\sdk_config.h), etc.

Children
Related