Oi,
to tentanto aprender a usar o LD (linker), mas nao esta funcionando, eu consigo gerar o objeto .o com o gcc, qndo eu linko da um warning, mas gera o binario, e qndo vou executar diz que o arquivo nao existe!
codigo:
#include <stdio.h>
int main(){
printf("Hello World!\n");
return 0;
}
comandos:
felipe@felipe:~/projetos/C$ gcc teste.c -o teste.o -c
felipe@felipe:~/projetos/C$ ld teste.o -lc -o teste
ld: warning: cannot find entry symbol _start; defaulting to 00000000080481a4
felipe@felipe:~/projetos/C$ ls
teste* teste.c teste.o
felipe@felipe:~/projetos/C$ ./teste
-sh: ./teste: No such file or directory
alguem sabe o porque disso?
vlw