good morning every one
i'm trying to write a simple kernel using gcc 64bit for C and C++, and nasm for assembly.
well, i tried to compile a simple code for the kernel , but the problem is in linking!!!!
when i link the objs files the linker tells me that the (nasm) object file format doesn't recognized :
C:\nasm\Nouveaudossier>gcc -c video.cpp -ffreestanding -nostdlib -fno-builtin -fno-rtti -fno-exceptions -o Video.obj
C:\nasm\Nouveaudossier>gcc -c kernel.cpp -ffreestanding -nostdlib -fno-builtin -fno-rtti -fno-exceptions -o Kernel.obj
C:\nasm\Nouveaudossier>nasm -f aout k_init.asm -o k_init.obj
C:\nasm\Nouveaudossier>ld -T Link.ld -o KRNL.BIN Kernel.obj Video.obj K_init.obj
K_init.obj: file not recognized: File format not recognized
C:\nasm\Nouveaudossier>pause
Appuyez sur une touche pour continuer...
K_init.obj: file not recognized: File format not recognized i think the problem is that nasm that i use is 32bit and the linker and gcc compiler is 64bit, so form where can i download the nasm 64bit , help me please.
sorry for my English
.