Ceedling don't compile headers

421 views
Skip to first unread message

מקסים סקופין

unread,
Mar 18, 2022, 3:05:06 PM3/18/22
to throwth...@googlegroups.com
Hello, Mark !

I'm working on the Iteration 2 Homework 1 of the second TDD course. At compilation time I get an error "undefined reference of <function_name>". For example, compilator "not see" function Timer_WaitMilli() into function LED_Blink() in file LED.c despite the fact that I inserted #include "Timer.h" at the beginning of LED.c

It's not work despite the fact that I rewrote project.yml  from Logger folder.

Can you help me ?

With my respect,

Maxim

David Good

unread,
Mar 18, 2022, 3:26:49 PM3/18/22
to throwth...@googlegroups.com
Hi Maxim,

I'm not exactly sure what you are trying to do, but the immediate thing that comes to mind is to check that you have included "Timer.h" or mock_Timer.h in your test file. That is how Ceedling knows to automatically include the Timer module or mock Timer module in the final executable.

--David

--
You received this message because you are subscribed to the Google Groups "ThrowTheSwitch Forums" group.
To unsubscribe from this group and stop receiving emails from it, send an email to throwtheswitc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/throwtheswitch/CAMPrmQrou7AwP1sVk66aekJ_QrYoOVymbZhMqbGUhOz%2Bu399uA%40mail.gmail.com.

Mark Vander Voord

unread,
Mar 18, 2022, 4:05:21 PM3/18/22
to throwth...@googlegroups.com
:) Excellent advice, David. I was going to say the same!

Mark

Maxim Skopin

unread,
Mar 19, 2022, 5:00:09 AM3/19/22
to ThrowTheSwitch Forums
Hello, Mark and David !

This trouble in compilation source code, not working with test or CMock, by my opinion.
I send screenshots, perhaps this will explain my predicaments.
Probably, I don't understand something, I will be glad if you explain to me.

With my regards,

Maxim

ב-יום שישי, 18 במרץ 2022 בשעה 22:05:21 UTC+2, mvandervoord כתב/ה:
Capture19032022-3.png
Capture19032022-2.png
Capture19032022-1.png

Maxim Skopin

unread,
Mar 19, 2022, 5:24:46 AM3/19/22
to ThrowTheSwitch Forums
Sorry, I was understand it. I did as David advised and compilation was successful.

Thank you,

Maxim

ב-יום שבת, 19 במרץ 2022 בשעה 11:00:09 UTC+2, Maxim Skopin כתב/ה:
Reply all
Reply to author
Forward
0 new messages