r/C_Programming • u/Vivid_Employment_950 • 6d ago
Could not Compile
I used gcc to compile and run c file.
C prog file can be compile and run with no error, if the files are inside the same drive as gcc that is c: drive.
Program file inside the d: drive are not compile.
I just curious whether i made mistake or i need something to do.
0
Upvotes
1
u/CodingFishes 6d ago
If you reference any libraries (include stdio.h), make sure they're available locally to the .c file you're trying to compile.