Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7922749
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T17:04:26+00:00 2026-06-03T17:04:26+00:00

I just installed cygwin 1.7, and wrote a simple Hello world in test.c but

  • 0

I just installed cygwin 1.7, and wrote a simple Hello world in test.c

but when I complie, nothing happens, even no error messages

gcc-4 -o test.exe test.c

enter image description here

And there’s nothing generated under my folder.

I have included C:\cygwin;C:\cygwin\bin in my PATH

Did I miss something?

EDIT:

for more information, I installed Qt4, tortoiseHg, and mingw before.
Now I had removed mingw. but still got Qt4 and tortoiseHg, is this a problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T17:04:27+00:00Added an answer on June 3, 2026 at 5:04 pm

    Try doing this from the Cygwin Terminal, not cmd.exe:

    $ cd `cygpath -u "$USERPROFILE"`/Desktop/UT
    $ gcc -o foo foo.c
    $ ls -l foo
    -rwxr-xr-x+ 1 yourlogin None 19618 May 10 05:15 foo*
    

    If that works, there’s some bogus remnant lying around.

    You’ll find that the Cygwin experience is generally better running under Bash, in a MinTTY terminal anyway. cmd.exe doesn’t understand Cygwinisms, and is a DOS throwback besides.

    Note that you don’t need to say gcc-4 to get GCC 4.x. gcc is GCC 4.x on Cygwin, and has been for quite some time now.

    Also note that you don’t need to include .exe in the GCC -o flag, because Cygwin GCC knows to add that already.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi I just installed git cygwin on my windows pc at work, but somehow
I'm new to Cygwin, I just installed it and attempted to set some simple
I just installed Cygwin and can launch a bash shell from windows, do ls
Just installed AnkhSVN and I see the equivalent of svn up but I'd prefer
Just installed the SDK and ADK. while updating, it gives the following error: unexpected
I just installed Wireshark, but when I click capture > interfaces , the dialog
I just installed cygwin and eclipse on my win7 x64 machine, and after importing
Just installed Django (with easy_install) and created a project, but can't get mysql to
I've just installed clang in to cygwin: clang version 3.1 (trunk 151024) TargetL i386-pc-cygwin
I just installed g++ from cygwin, when I try to compile a C++ file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.