Hi I'm having a problem assembling a simple code calling a printf.
I'm linking it to libc but I get this undefined reference error.
does anyone know how to link to libc.
I'm linking it to libc but I get this undefined reference error.
does anyone know how to link to libc.
as asm-1.s -o asm-1.o
ld asm-1.o -o asm-1 --dynamic-linker /usr/libexec/ld-elf.so.1 -lc
Code:
/lib/libc.so.7: undefined reference to `__progname'
/lib/libc.so.7: undefined reference to `environ'