Ceedling
Ceedling copied to clipboard
compile error:undefined reference to ***
I'm just starting to learn ceedling. I followed the steps on this website to create a new project.(https://throw-the-switch.squarespace.com/ceedling)
When I run cmd - “ceedling test:all”, there are errors. looks like the file sample.c not been compiled. I wonder what‘s going wrong, thanks
My guess is that your test_sample.c file does not #include "sample.h" or TEST_SOURCE_FILE("sample.c"). Either of these are an option to tell Ceedling which files you want to build as part of your test (just one is required).
:)