davidcallanan / os-series

818 stars 119 forks source link

Can you link in the c library? #25

Open Cat22 opened 3 years ago

Cat22 commented 3 years ago

If you could link in libc (/lib64/libc.so.6) then you could use standard C functions like printf. I'll bet this isnt all that difficult and you could look at startup code for an ordinary C program to get the method/code/info on how to do it. Plus it would make a great video!

Kjur0 commented 3 years ago

You normally have to add #include <stdio.h> on the first line of your .c file... But it won't work. See Issue #21