[riot-notifications] [RIOT-OS/RIOT] Reference errors when using multiple folders in C. (#16520)
Jean Pierre Dudey
notifications at github.com
Thu Jun 3 10:56:40 CEST 2021
Hello @JaccoVeldscholten, by default RIOT compiles only files in your current directory, other directories aren't included by default so that's why you get the 'undefined reference' errors, because the linker cannot find the functions it needs for the program to work.
On the on coming version `2020.07` (and on `master` branch) you can use `EXTERNAL_MODULE_DIRS` to add folders where you want to find your modules, for example:
EXTERNAL_MODULE_DIRS += libraries
USEMODULE += Unity
And on a file `libraries/Unity/Makefile`:
Please note that the module name (the one you add to `USEMODULE`) must be equal to the name of the folder containing the module.
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications