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++.
Problems with DJGPP and NASM
- Pype.Clicker
- 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
-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...
-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...