+ 7

'undefined reference to `main' collect2: error: ld returned 1 exit status'

This error is coming when I am trying to run my programs of C and C++ in laptop. But they are working when I am running them on the phone. Moreover, in python there is 'no output' in laptop but it is working on the phone. What can I do to get rid of this error? My projects are correct but I am unable to run them on laptop. Do I have to change the settings??? Please help!!!!!

6th May 2020, 9:17 AM
Namit Jain
Namit Jain - avatar
5 Respuestas
+ 5
MC Ritnem $tan There is problem in every code, although it is correct.
6th May 2020, 11:40 AM
Namit Jain
Namit Jain - avatar
+ 5
Martin Taylor you are right now it's working on laptop!!!
6th May 2020, 1:39 PM
Namit Jain
Namit Jain - avatar
+ 4
Can you please share your code of c++??
6th May 2020, 11:37 AM
xkcd
xkcd - avatar
+ 4
Which one???
6th May 2020, 11:44 AM
xkcd
xkcd - avatar
+ 2
Browser version isn't working ,I tried last night for python and it gave no output ,you can mail sololearn for the issue:-)
6th May 2020, 9:26 AM
Abhay
Abhay - avatar