473,396 Members | 1,774 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Activepython gcc and swig

Hello,

I've looked at the swig example in the back of "programming python"
(Lutz). Using gcc to compile a swig wrapper I'm getting lots of
errors. Instead of using the cygwin python, I'm trying to point swig
to my activepython installation. I'm doing this because my modules are
all win32 installed, and not cygwin installed. Can anyone help me?

I'm pointing to C:/python24/include and C:/python24/Libs.
************* Here are the errors *******************

$ gcc -c example.c example_wrap.c -Ic:/python24/include
-Ic:/python24/Lib
In file included from c:/python24/include/Python.h:82,
from example_wrap.c:112:
c:/python24/include/intobject.h:41: error: parse error before
"PyInt_AsUnsignedL
ongLongMask"
c:/python24/include/intobject.h:41: warning: data definition has no
type or stor
age class
In file included from c:/python24/include/Python.h:84,
from example_wrap.c:112:
c:/python24/include/longobject.h:37: warning: parameter names (without
types) in
function declaration
c:/python24/include/longobject.h:39: error: parse error before
"PyLong_AsLongLon
g"
c:/python24/include/longobject.h:39: warning: data definition has no
type or sto
rage class
c:/python24/include/longobject.h:40: error: parse error before
"PyLong_AsUnsigne
dLongLong"
c:/python24/include/longobject.h:40: warning: data definition has no
type or sto
rage class
c:/python24/include/longobject.h:41: error: parse error before
"PyLong_AsUnsigne
dLongLongMask"
c:/python24/include/longobject.h:41: warning: data definition has no
type or sto
rage class
************************************************** ************************************************

Jan 26 '07 #1
0 1116

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: JZ | last post by:
Who can explain me what is the advantage of ActivePython over (1) standard Python 2.3.2 instalation (from www.python.org) plus (2) the latest win32? (I am using win32 box, of course). In past I...
1
by: Justin Stockton | last post by:
I recently upgraded from ActivePython 2.2.2 to ActivePython 2.3.2 and I'm running into an issue importing the win32com.client module. Before installing the new version, I made sure to properly...
1
by: Ernie | last post by:
Hi, I am learning swig to use C codes from Python. Here is the swig file mvf.i: %module mvf %include "carrays.i" %array_class(double, doubleArray); %typemap(out) double, float "$result =...
3
by: Kevin Dahlhausen | last post by:
Could anyone post a simple setup.py script that uses a SWIG interface to C++ code and the mingw compiler? I followed some online samples, and am using the setup.cfg file to specify swig-c++=1....
1
by: Steve M | last post by:
When I use the COM Makepy utility on one computer with WindowsXP, ActivePython 2.3 and I select the library Microsoft Word 10.0 Object Library (8.2), things work fine. When I have WindowsXP,...
2
by: ajikoe | last post by:
Hi, I tried to follow the example in swig homepage. I found error which I don't understand. I use bcc32, I already include directory where my python.h exist in bcc32.cfg. /* File : example.c...
1
by: Fuzzyman | last post by:
Hello all, In the past I've used the ActivePython distribution for windows. Particularly their chm help manual is excellent. I have heard that the ActivePython distribution *doesn't* include...
5
by: Frank Swarbrick | last post by:
Why might one choose to use ActivePython instead of using the free CPython?
14
by: Trent Mick | last post by:
I'm happy to announce that ActivePython 2.6.0.0 is now available for download from: http://www.activestate.com/Products/activepython/ ActivePython 2.6.0.0 is based on Python 2.6.0. What is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.