Help with Gcc on cygwin

This is a discussion on Help with Gcc on cygwin within the Tech Board forums, part of the Community Boards category; Hi..i had install cygwin directly from internet and when i try to compile using bash why i get srror "bash: ...

  1. #1
    Registered User
    Join Date
    Mar 2005
    Posts
    36

    Help with Gcc on cygwin

    Hi..i had install cygwin directly from internet and when i try to compile using bash why i get srror "bash: gcc: command not found"..Can anybody please provide me a solution for this..I will appreciate it alot..Thanks

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,592
    Run the setup again, choose the development tools branch and select gcc.
    You don't get everything downloaded all at once (it would take many hours), so you need to pick and choose the components which interest you.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Web Developer
    Join Date
    Mar 2005
    Location
    Vancouver, Canada
    Posts
    24
    Hehe, that was fun trying to install GCC. I tried to install it so many times because it wouldn't download a few of the files. Finally, I realized that, yes, you had to click the "GCC compiler" check box!! That was frustrating!

    Also, just a suggestion--Even though I run GCC, I run it through DOS instead of cygwin.

    All I did was set the Environment Variable in System (control panel) to c:\cygwin\bin, and then I would type in dos:

    gcc file.c

    and it would compile to a.exe. Then I just type:

    a

    and it'll run the file.

    This is just a suggestion because cygwin's window takes a while to load up and the DOS screen loads instantly, hehe.

  4. #4
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,592
    > I run it through DOS instead of cygwin.
    Until you realise exactly how useful bash is compared to the brain-dead corpse which is cmd.exe.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  5. #5
    Registered User
    Join Date
    Sep 2004
    Posts
    719
    since you have beginner in your name, let me point out an important lesson. read the README's!the 2 minutes you spend reading them will save you hundreds in the long run.
    i seem to have GCC 3.3.4
    But how do i start it?
    I dont have a menu for it or anything.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Profiler Valgrind
    By afflictedd2 in forum C++ Programming
    Replies: 4
    Last Post: 07-18-2008, 09:38 AM
  2. MATLAB user trying to use gcc in cygwin (with BLAS and LAPACK)
    By greek_tragedy in forum C Programming
    Replies: 0
    Last Post: 07-23-2007, 02:29 PM
  3. Cygwin GCC setting for heap
    By stlait00 in forum C Programming
    Replies: 1
    Last Post: 05-02-2006, 05:32 AM
  4. gcc
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 21
    Last Post: 10-22-2003, 03:46 PM
  5. GCC (cygwin) much faster than MSVC, Borland?
    By Sargnagel in forum C Programming
    Replies: 15
    Last Post: 08-05-2003, 03:15 AM

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