I have installed cygwin in Windows
How can I execute a c file in Windows?
Printable View
I have installed cygwin in Windows
How can I execute a c file in Windows?
As in compile a C program?
You need to point netbeans to the bin and lib directories of cygwin. I don't remember, but I though netbeans had an option to do that for you automatically.
Windows is not catching GCC at all, when I execute:
gcc --version
I get the message GCC not recognized in cm
Instead of hassling with Cygwin you may be better off using Windows subsystem for Linux (assuming you have Windows 10)
Install Windows Subsystem for Linux (WSL) on Windows 10 | Microsoft Docs
make sure you are in the directory containing gcc.exe or set your path as a global variable. You could also try: Getting Started | MinGW