Compiling and linking.

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
gizmostripe

Compiling and linking.

Post by gizmostripe »

ok i have NASM and djgpp installed on my pc. I have 2 asm files (bootloader, and kernel loader) a kernel.c file and my headers.

I have big problems though compiling. The kernel loader cannot be flat binary because of its external refrences, and wont then link with a flat binary bootloader. The C is getting no output at all and i dont understand why. (Do i need to set switches to use my own libs)

Can anyone please tell me the ideal commandlines for this (windows) so it compiles and links all the files. (I.e. What files/switches etc.)

Bootloader <-> Kernel Loader (PMode) <-> Kenel_C + (Libs)

Thanks in advance! :)
Post Reply