Problems with DJGPP and NASM

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
Magmadragoon

Problems with DJGPP and NASM

Post by Magmadragoon »

I am using Windows 98 to do operating system programming. I was trying to use the tutorial Writing a Simple C Kernel by Joachim Nock & K.J. When I try to use NASM the program opens then closes very quickly and when I try to compile the C kernel in Rhide editor it comes with the errors:

cannot specify -o with -c or -s and multiple compilations

I have no experience eith DJGPP and NASM. I only have experience in Visual C++.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:Problems with DJGPP and NASM

Post by Pype.Clicker »

-o "file" says the output should be "file"
-c says the "myFile.c" should become "myFile.o" which can fit later linking.

Saying "make one .o file out of one .c file" simply doesn't fit the "many inputs" approach .. so several calls to GCC must be done to get the *.o out of the *.c ... which is basically the purpose of makefiles...
Post Reply