#Undefined Reference Error When Calling A Function

2 messages · Page 1 of 1 (latest)

solemn tapirBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

fathom houndBOT
#
Compiler Output
/opt/compiler-explorer/gcc-13.2.0/bin/../lib/gcc/x86_64-linux-gnu/13.2.0/../../../../x86_64-linux-gnu/bin/ld: /lib/x86_64-linux-gnu/crt1.o: in function ​`_start':
(.text+0x24): undefined reference to ​`main'
collect2: error: ld returned 1 exit status
Build failed