<div dir="ltr">Worked for me too! Moved declarations of helper functions into the print.c file.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">so 10. 10. 2020 v 19:53 odesÃlatel Krisztian Bokor <<a href="mailto:bokorkrisztian7@gmail.com">bokorkrisztian7@gmail.com</a>> napsal:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">It works!! Oh my God, thanks a ton! </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Oct 10, 2020, 19:45 Jan Výkruta <<a href="mailto:vykrutak@gmail.com" target="_blank">vykrutak@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">There is a cyclic dependency: print.h -> adt/list.h -> debug.h -> print.h.<div><br></div><div>Don't bother adding helper functions into print.h instead mark them static in print.c and the compiler will shut up about missing declarations.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Oct 10, 2020 at 4:08 PM Krisztian Bokor <<a href="mailto:bokorkrisztian7@gmail.com" rel="noreferrer" target="_blank">bokorkrisztian7@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Same issue</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Oct 10, 2020, 16:07 Quoc Anh Nguyen <<a href="mailto:nquocanh97@gmail.com" rel="noreferrer" target="_blank">nquocanh97@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<div>I have a problem running "make" after modifying the print.c file in assignment 01. I cloned the a01-LOGIN repository, ran the "configure.py" script and successfully ran the "make" command. I proceeded to edit "kernel/src/lib/print.c" and "kernel/include/lib/print.h" to implement my printk() function.</div><div>Then I ran the configure.py script and tried to run "make", but it gave me this error:</div><div><br></div><div>include/lib/print.h:15:14: error: unknown type name 'list_t'<br>  15 | void print_L(list_t* list);<br clear="all"><div><br></div><div>So I added #include <adt/list.h> to the print.h file. Now "make" gives me this error:</div><div><br></div><div>include/adt/list.h: In function 'link_init':<br>include/adt/list.h:127:5: error: implicit declaration of function 'assert' [-Werror=implicit-function-declaration]<br> 127 |   assert(link != NULL);<br>   |   ^~~~~~<br>include/adt/list.h:9:1: note: 'assert' is defined in header '<assert.h>'; did you forget to '#include <assert.h>'?<br></div><div><br></div><div>What am I doing wrong here? I don't suppose I should just include the assert.h file?</div>-- <br><div dir="ltr"><div dir="ltr">Nguyen</div></div></div></div>
_______________________________________________<br>
NSWI004 mailing list<br>
<a href="mailto:NSWI004@d3s.mff.cuni.cz" rel="noreferrer noreferrer" target="_blank">NSWI004@d3s.mff.cuni.cz</a><br>
<a href="https://d3s.mff.cuni.cz/mailman/listinfo/nswi004" rel="noreferrer noreferrer noreferrer" target="_blank">https://d3s.mff.cuni.cz/mailman/listinfo/nswi004</a><br>
</blockquote></div>
_______________________________________________<br>
NSWI004 mailing list<br>
<a href="mailto:NSWI004@d3s.mff.cuni.cz" rel="noreferrer" target="_blank">NSWI004@d3s.mff.cuni.cz</a><br>
<a href="https://d3s.mff.cuni.cz/mailman/listinfo/nswi004" rel="noreferrer noreferrer" target="_blank">https://d3s.mff.cuni.cz/mailman/listinfo/nswi004</a><br>
</blockquote></div>
_______________________________________________<br>
NSWI004 mailing list<br>
<a href="mailto:NSWI004@d3s.mff.cuni.cz" rel="noreferrer" target="_blank">NSWI004@d3s.mff.cuni.cz</a><br>
<a href="https://d3s.mff.cuni.cz/mailman/listinfo/nswi004" rel="noreferrer noreferrer" target="_blank">https://d3s.mff.cuni.cz/mailman/listinfo/nswi004</a><br>
</blockquote></div>
_______________________________________________<br>
NSWI004 mailing list<br>
<a href="mailto:NSWI004@d3s.mff.cuni.cz" target="_blank">NSWI004@d3s.mff.cuni.cz</a><br>
<a href="https://d3s.mff.cuni.cz/mailman/listinfo/nswi004" rel="noreferrer" target="_blank">https://d3s.mff.cuni.cz/mailman/listinfo/nswi004</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Nguyen</div></div>