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 6818719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:12:48+00:00 2026-05-26T21:12:48+00:00

I have been having a terrible time trying to compile a python extension –

  • 0

I have been having a terrible time trying to compile a python extension – hopefully someone can help.

I initially tried executing ‘python.exe setup.py build’ but received the error: ‘Python was built Visual Studio 2003; extensions must be built with a compiler that can generate compatible binaries…”.

So I then downloaded Cygwin, and have tried sending the switch ‘-c mingw32’. A few lines were written into the console – then I get the error message: command ‘gcc’ failed: Permission denied.

I was initially using the Visual Studio 2010 Command Line to do this, but tried with bash and got the same result.

I have spent a considerable amount of time researching the issue, and it appears Cygwin uses symlinks for gcc and g++, and windows doesn’t understand how to handle this.

How exactly can I force setup.py to use gcc-3.exe instead of the gcc.exe symlink?

  • 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-05-26T21:12:49+00:00Added an answer on May 26, 2026 at 9:12 pm

    I know it’s inelegant, but you can rename the symlink and copy gcc-3.exe to gcc.exe. That worked for me when I used Cygwin’s gcc. You might want to switch to the mingw64-i686 (or mingw64-x86_64) package to get gcc 4.5.3, or just install MinGW-w64 separately for compiling under Windows.

    Also, you can permanently configure distuilts in PythonXX\Lib\distutils\distutils.cfg:

    [build]
    compiler = mingw32
    
    [build_ext]
    compiler = mingw32
    
    [build_clib]
    compiler = mingw32
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm experiencing the strangest problem and have been having a terrible time debugging it.
I have been having the hardest time trying to resolve the weirdest error when
I have been having some problems trying to get my PHP running. When I
I have been having a lot of trouble figuring out how I can access
I have been having a hard time understanding how to use a singleton to
I have been having this debate with my boss for a long time, now
We have been having this issue pop up sporadically, but now I can reproduce
i have been having this trouble when trying to obtain json data. lets say
I have been having some issues with django-haystack and need some help. I run
I have been having some issues with LINQ-To-SQL around memory usage. I'm using it

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.