Thread: I have installed cygwin en netbeans

  1. #1
    Registered User
    Join Date
    Nov 2018
    Posts
    9

    I have installed cygwin en netbeans

    I have installed cygwin in Windows

    How can I execute a c file in Windows?

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    27,159
    As in compile a C program?
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    2,728
    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.
    Devoted my life to programming...

  4. #4
    Registered User
    Join Date
    Nov 2018
    Posts
    9
    Windows is not catching GCC at all, when I execute:
    gcc --version

    I get the message GCC not recognized in cm

  5. #5
    misoturbutc Hodor's Avatar
    Join Date
    Nov 2013
    Posts
    1,457
    Quote Originally Posted by jenniferruurs View Post
    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

  6. #6
    null pointer Structure's Avatar
    Join Date
    May 2019
    Posts
    147

    Thumbs up

    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


Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Enabling Cygwin in Netbeans and header file issues.
    By Krabiki in forum C Programming
    Replies: 1
    Last Post: 06-25-2013, 11:11 AM
  2. Novice Programmer, having trouble. Netbeans/Cygwin
    By oninchowder in forum C Programming
    Replies: 7
    Last Post: 09-13-2011, 10:30 AM
  3. from dev-c++ mingw to netbeans cygwin
    By yahn in forum C++ Programming
    Replies: 10
    Last Post: 01-14-2009, 08:18 AM
  4. NetBeans + Cygwin driving me insane
    By Del75 in forum C++ Programming
    Replies: 4
    Last Post: 08-17-2008, 05:03 AM

Tags for this Thread