469,602 Members | 1,826 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,602 developers. It's quick & easy.

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 973

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by JZ | last post: by
1 post views Thread by Justin Stockton | last post: by
1 post views Thread by Ernie | last post: by
3 posts views Thread by Kevin Dahlhausen | last post: by
1 post views Thread by Steve M | last post: by
2 posts views Thread by ajikoe | last post: by
1 post views Thread by Fuzzyman | last post: by
5 posts views Thread by Frank Swarbrick | last post: by
14 posts views Thread by Trent Mick | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.