compiling assembly in linux with nasm
So I started messing around with assembly but I am having some issues compiling.
From the directions on one page I followed i did
But then I got this error message
nasm -f elf program1.asm
ls program1.o -o program1
So I looked up the error and there wasnt a clear answer, but it seems the linker is trying to do 64 bit and nasm is doing 32bit? Am I on the right track?
ld: i386 architecture of input file `program1.o' is incompatible with i386:x86-64 output