/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/Scrt1.o: in function _start': (.text+0x17): undefined reference to
main’
I keep receiving this error and I am not sure why
(I attached my code)
I tried rewritting the main statement but it did not work
New contributor
Nayelli Yanez is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
3