NateEpps / ncc4

2 stars 0 forks source link

Live Linux test linker issue #20

Open NateEpps opened 1 year ago

NateEpps commented 1 year ago
~$ gcc tmp.s -o Tmp
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x24): undefined reference to `main'
/usr/bin/ld: /tmp/cc2jN4Pc.o: in function `_main':
(.text+0x1a): undefined reference to `_printf'
collect2: error: ld returned 1 exit status

First guess? gcc needs more linker options, or something

For the first thing? Idk, main has a different name on linux mint?