Thread: cygwin problems

  1. #1
    Registered User
    Join Date
    Aug 2002
    Posts
    51

    Question cygwin problems

    I only just installed cygwin on my comp so that i can use it to compile and run my c programs. when i do this gcc -o helloworld helloworld.c i get the following error:

    bash: gcc: command not found

    I have made sure that im in the directory that contains the c file and it still comes up with the same error. Any help here would be greatly appreciated.

    Thanks.

  2. #2
    Registered User
    Join Date
    Aug 2002
    Posts
    51

    more problems

    Hi,
    Ive fixed thegcc problem, now im having a new one....

    heres my test prog:

    [code]

    #include <stdio.h>


    main()

    {
    printf("SOMETHING.\n");
    }
    [code]

    heres the error cygwin gives me:

    $ gcc -o test test.c
    test.c:6:5: warning: no newline at end of file
    /usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/ld: cannot fi
    nd -luser32
    collect2: ld returned 1 exit status


    Can anyone help? btw if you hadnt noticed im very new to C.. lol.

    Thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. No clue how to make a code to solve problems!
    By ctnzn in forum C Programming
    Replies: 8
    Last Post: 10-16-2008, 02:59 AM
  2. cygwin sshd weird behavior
    By jEssYcAt in forum Tech Board
    Replies: 6
    Last Post: 05-19-2008, 02:05 PM
  3. Problems with compiling code in cygwin
    By firyace in forum C++ Programming
    Replies: 4
    Last Post: 06-01-2007, 08:16 AM
  4. Cygwin Server
    By osal in forum Networking/Device Communication
    Replies: 0
    Last Post: 03-07-2005, 12:58 PM