ld is giving me errors
Posted: Mon Nov 08, 2004 12:46 am
I am new to os development, but i am proficient with c++ and asm. When i try to link my cpp .o files with my asm .o file (aout format) using ld i get the following error: File format not recognized. Here is a build.bat file i made to save myself some time:
@echo off
C:\DJGPP\bin\gxx -c Video.cpp -ffreestanding -nostdlib -fno-builtin -fno-rtti -fno-exceptions
C:\DJGPP\bin\gxx -c kernel.cpp -ffreestanding -nostdlib -fno-builtin -fno-rtti -fno-exceptions
C:\nasm\nasmw -f aout Loader.asm -o Loader.o
C:\DJGPP\bin\ld -T Link.ld -o Kernel.bin Kernel.o Video.o Loader.o
pause
any suggestions as to why i would be recieving this irritating error?
I am developing this under windows xp.
@echo off
C:\DJGPP\bin\gxx -c Video.cpp -ffreestanding -nostdlib -fno-builtin -fno-rtti -fno-exceptions
C:\DJGPP\bin\gxx -c kernel.cpp -ffreestanding -nostdlib -fno-builtin -fno-rtti -fno-exceptions
C:\nasm\nasmw -f aout Loader.asm -o Loader.o
C:\DJGPP\bin\ld -T Link.ld -o Kernel.bin Kernel.o Video.o Loader.o
pause
any suggestions as to why i would be recieving this irritating error?
I am developing this under windows xp.