Thread: gcc compiler not working in windows vista

  1. #1
    Registered User
    Join Date
    Aug 2007

    Question gcc compiler not working in windows vista

    Im using windows and seem to have installed the C compiler using cygwin. When i open cmd and type in gcc i get the following error:
    'gcc' is not recognized as an internal or external command,
    operable program or batch file.

    But when i type g++-3 it works in a way as I get a 'good' error:
    g++-3: no input files

    In Environment Variables for the path I put this:
    %SystemRoot%\system32;%SystemRoot%;%Sy... Files\Common Files\Adobe\AGL;C:\Program Files\Encsoft\bin;C:\j2sdk1.4.2_18\bin;C...

    How do i get the gcc to work?

  2. #2
    Registered User
    Join Date
    Jan 2008
    Ewww Cygwin...

    Get MinGW. Its a free port of GCC to Windows and it creates native Windows executables with no 3rd party dependencies.

    You can read up about it and download the latest versions of each package separately, or you can just use the automated installer. Make sure you add the MinGW bin directory to your path and you should be good to go.

    Some of the utilities, like GNU make, have long executable names. It can get tedious to type out "mingw32-make". So I create a copy of the executable and rename the copy to something more sane - like "make.exe". Make sure you keep the original executable though, you never know when some other utility may expect it to be there.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. problem in windows vista
    By raj_ksrt in forum C++ Programming
    Replies: 6
    Last Post: 09-30-2008, 11:52 AM
  2. A question about windows programming
    By Hussain Hani in forum Windows Programming
    Replies: 16
    Last Post: 05-23-2007, 07:38 AM
  3. Virtual keys
    By Arkanos in forum Windows Programming
    Replies: 4
    Last Post: 12-12-2005, 10:00 AM
  4. Codec Bitrates?
    By gvector1 in forum C# Programming
    Replies: 2
    Last Post: 06-16-2003, 08:39 AM
  5. Gnu Gcc with Windows
    By JasonLikesJava in forum C++ Programming
    Replies: 0
    Last Post: 03-06-2002, 12:40 PM