How do I compile c++ to a windows exe

I tried but it says “This App Can’t Run On Your PC”.

Repl link:

1 Like

Hi @AwsomeDog7, welcome to the forums!

Replit runs on Linux so you can’t use exe files

1 Like

I’m downloading to my Windows 11 machine

To add to what Qwerty said, Linux explicitly compiles for Linux. If you want to compile for Windows; I suggest installing MinGW or another similar tool like Cygwin or MSYS2 and using the g++ command in order to compile C++ programs.