Ceedling icon indicating copy to clipboard operation
Ceedling copied to clipboard

compile error:undefined reference to ***

Open xunle-owen opened this issue 10 months ago • 1 comments

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

Image

Image

xunle-owen avatar Mar 03 '25 07:03 xunle-owen

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).

:)

mvandervoord avatar Mar 03 '25 15:03 mvandervoord