j'ai quelques problèmes avec DOI nasm pour macos:lien programme nasm pour mac os x
GLOBAL _start
SEGMENT .text
_start:
mov ax, 5
mov bx, ax
mov [a], ebx
SEGMENT .data
a DW 0
t2 DW 0
fry$ nasm -f elf test.asm
fry$ ld -o test test.o -arch i386
ld: warning: in test.o, file was built for unsupported file format which is not the architecture being linked (i386)
ld: could not find entry point "start" (perhaps missing crt1.
fry$ nasm -f macho test.asm
fry$ ld -o test test.o -arch i386
ld: could not find entry point "start" (perhaps missing crt1.o)
quelqu'un peut me aider?
frire $ nasm -f macho test.asm frire test.o test -o $ ld -arch i386 ld: n'a pas pu trouver le point d'entrée "start" (pe rhaps manquant crt1.o) –
@Fry, édité avec la réponse dont vous avez besoin. Aussi - allez accepter quelques réponses. –