I'm having a little problem, wish to find some help here, my problems appear when i try to run a single .c file , it shows me the error :
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o : Dans la fonction « _start » : (.text+0x20) : référence indéfinie vers « main » collect2: error: ld returned 1 exit status
[Done] exited with code=1 in 0.13 seconds
i can run my codes if i put them inside a workspace and then build the task (CTRL + SHIFT + B) , but i need code some single files , so why I can't run them as a single file ? I really need to find the solution . Help please , Thanks .
the error screenshot : click here to view the screenshot