Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Code: command-line error:missing source file name

This is picture of my screen: this is a picture of my screen.This error shows up when I enter #include <stdio.h>to begin my program. I'm not sure how to fix this. Every file in Visual Studio Code is now having this issue.

I use gcc. gcc -o outputname filename.c and using C/C++ IntelliSense, debugging, and code browsing extension by Microsoft.

like image 346
user1829 Avatar asked Mar 06 '26 01:03

user1829


1 Answers

As you didn't explain the question well. I think that there is a macro in the build options that is not defined so it gets inserted into the build command as a blank string. Does your project use some macros in the build options maybe something for 55x CSL directory?

If so make sure to define these macros on the macro tab of the build options dialog.

like image 188
Vipul Sinha Avatar answered Mar 08 '26 21:03

Vipul Sinha



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!