Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22029

gcc error message: stray '\XXX' in program

$
0
0

I've started learning Assembly, and I have two files:

main.c
#include <stdio.h>
int assembly(void);
int main(void)
{
    printf("Resultado: %d\n", assembly());
return 0;
}

and

assembly.asm
global assembly
assembly:
  mov eax, 777
  ret

So I used this command "nasm assembly.asm -f elf64" and it created the file "assembly.o". After that, I used another command "gcc -c main.c -o main.o" but it showed some errors on the shell:

Errors on shell

What can I do?


Viewing all articles
Browse latest Browse all 22029

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>