Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old November 6th, 2006, 12:45 PM
Paolo Pantaleo
Guest
 
Posts: n/a
Default Building C extensions

Well I'm just courious: if I want to buid a C extension, I shoul use
the same compiler that has been used to build python (right?). Since
python has been built using Visual C, how can I build an extension if
I don't have Visual Studio?

PAolo
  #2  
Old November 6th, 2006, 01:15 PM
casevh@comcast.net
Guest
 
Posts: n/a
Default Re: Building C extensions


Paolo Pantaleo wrote:
Quote:
Well I'm just courious: if I want to buid a C extension, I shoul use
the same compiler that has been used to build python (right?). Since
python has been built using Visual C, how can I build an extension if
I don't have Visual Studio?
>
PAolo
Use mingw32. It should work fine for most extensions.

For example, see
http://groups.google.com/group/comp....2260fe4d4b7de9
and the followup messages.

casevh

  #3  
Old November 6th, 2006, 01:35 PM
JW
Guest
 
Posts: n/a
Default Re: Building C extensions

On Mon, 06 Nov 2006 14:03:54 +0100, Paolo Pantaleo wants to build a C
extension (presumably for Windows):

A few months ago, I suffered the same misfortune of needing to port a
pyrex-generated extension to Windows. I'm sure it's easier than I made
it, but have a look at the thread:

http://tinyurl.com/yb4bps

If you're developing under Windows (you poor fellow!), you may actually
have a slightly easier time than did I.

Jim Wilson
Gainesville, FL
  #4  
Old November 6th, 2006, 05:45 PM
Martin v. Löwis
Guest
 
Posts: n/a
Default Re: Building C extensions

Paolo Pantaleo schrieb:
Quote:
Well I'm just courious: if I want to buid a C extension, I shoul use
the same compiler that has been used to build python (right?). Since
python has been built using Visual C, how can I build an extension if
I don't have Visual Studio?
If you don't have mingw32, either, you can't build the extension module.
You need to get a supported compiler. If you don't have one, find
somebody who builds the extension for you.

Regards,
Martin
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles