When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
3 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
#include <stdio.h>
int main()
{
int a, b;
printf("enter number a");
scanf("%d",&a);
printf("enter number b");
scanf("%d",&b);
return 0;
}
PS C:\Users\himan\c> cd C:\msys64\mingw64\bin
PS C:\msys64\mingw64\bin> gcc
gcc.exe: fatal error: no input files
compilation terminated.
PS C:\msys64\mingw64\bin> gcc .main
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find .main: No such file or directory
collect2.exe: error: ld returned 1 exit status
PS C:\msys64\mingw64\bin> cd \msys64\mingw64
PS C:\msys64\mingw64> gcc
gcc.exe: fatal error: no input files
compilation terminated.
PS C:\msys64\mingw64> gcc .main
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find .main: No such file or directory
collect2.exe: error: ld returned 1 exit status
PS C:\msys64\mingw64> gcc -o add.exe
gcc.exe: fatal error: no input files
compilation terminated.
PS C:\msys64\mingw64> gcc -o add.c
gcc.exe: fatal error: no input files
compilation terminated.
PS C:\msys64\mingw64> gcc -o main.exe void.c