The C file compiles perfectly fine as long as it's only:
#include <stdio.h>
int main( void ) {
printf( "Hello, world without a new line" );
return 0;
}
and it outputs "Hello, without a new line."
However, as I add more code to my program such as:
printf( "Hello, world with a new line\n" );
and I try to compile it like this:
gcc filename.c -o filename.exe
then I receive the message "The system cannot execute the specified program."
I checked if the PATH in the environment variables is there for MingW/bin, I opened and closed applications if it was a memory issue, I have the McAfee antivirus installed.
This will enable additional warnings which might help identify the issue.
or you can try it disabling your antivirus.
or try with this.