Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97327

I can run my C codes on a workspace , but i can not run them as a single files

$
0
0

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


Viewing all articles
Browse latest Browse all 97327

Trending Articles