0
Strange error in code playground
I tried running some posted codes from other users and they weren't working which was odd as they were top rated codes. I then tried one I saved that I know worked and now I get this error message which is the same from the other codes I tried; ../Playground/: ../Playground/-linux-gnu/crt1.o: in function `_start': (.text+0x20): undefined reference to `main' collect2: error: ld returned 1 exit status Does anyone know the solution to this?
2 Respostas
+ 1
Check the from first line to last line. There may some text which not the part of your code these text get pasted while you copy so remove all the text.
0
Thank you. I think it was an issue with the site because the next day when logging in the issue was gone but thanks for the advice!