Some trouble adapting Meaty Skeleton to an existing project
Posted: Wed Apr 11, 2018 5:21 am
Hi,
As the title states, I'm having some trouble adapting the Meaty Skeleton tutorial to my existing project.
Specifically, my problem comes with the libk, when it tries to call a function from the main kernel project (in this case, my equivalent of terminal_write()).
When linking, it says there's an undefined reference to that function, even though I have included the header.
I'm only getting this issue when I try to call the libk function (putchar) from the kernel itself (or libk functions that rely on it), though just including the header (stdio.h) without calling the function gives no issues.
Other functions in libk, which don't call anything from the kernel project (such as strlen) work fine.
Can anyone help me understand why I'm having this problem and maybe how I can solve it?
As the title states, I'm having some trouble adapting the Meaty Skeleton tutorial to my existing project.
Specifically, my problem comes with the libk, when it tries to call a function from the main kernel project (in this case, my equivalent of terminal_write()).
When linking, it says there's an undefined reference to that function, even though I have included the header.
I'm only getting this issue when I try to call the libk function (putchar) from the kernel itself (or libk functions that rely on it), though just including the header (stdio.h) without calling the function gives no issues.
Other functions in libk, which don't call anything from the kernel project (such as strlen) work fine.
Can anyone help me understand why I'm having this problem and maybe how I can solve it?