u/IndoRexian2

gcc unable to create the executable

Hi y'all, I've been trying to learn C and I installed mingw using msys2.

I'm trying to compile the following code:

// hello.c
#include <stdio.h>

int main(void)
{
    printf("Hello, Windows!\n");
    return 0;
}

When running gcc hello.c -o hello.exe, I don't get any executable. I've tried reinstalling mingw, and I've also checked that I'm running the command on the same directory where the file. I also added the particular folder to Windows Defender Exclusion list but still can't get anything done. What am I doing wrong?

Edit: Got it to work by changing my terminal from Powershell to Git Bash.

reddit.com
u/IndoRexian2 — 22 hours ago

Can anyone tell MOSFET (especially Small Signal Analysis) kaise finish karu asap? Also tell the important topics, topics that I can probably leave and any other resources(playlist vagera). I glimpsed through the 21 videos one mentioned in the Gyansutra but idts usme small signal acche se bataya hai.

reddit.com
u/IndoRexian2 — 17 days ago