gcc compiler not working in windows vista

This is a discussion on gcc compiler not working in windows vista within the C Programming forums, part of the General Programming Boards category; Im using windows and seem to have installed the C compiler using cygwin. When i open cmd and type in ...

  1. #1
    Registered User
    Join Date
    Aug 2007
    Posts
    270

    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:
    C:\Users\Taurus>gcc
    '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:
    C:\Users\Taurus>g++-3
    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
    Posts
    287
    Ewww Cygwin...

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

    http://sourceforge.net/project/showf...?group_id=2435

    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, 09: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, 11:40 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21