long long on Visual C++ 6.0
Status: Beta
Brought to you by:
jackdied
submitted by a user via email:
I have got it to compile using Python 2.3 and Microsoft
Visual C++ 6.0, but had to make some changes.
MSVC doesn't like "long long" as a data type. It's
idea of a "long"
appears to be a 32 bit integer.
I'm not sure what size you want, but your code compiled
and passed the supplied tests using "__int64" instead
of "long long" (which is how MS say to define a 64 bit
long integer).
Logged In: YES
user_id=259020
Originator: NO
Confirmed, also using Python 2.3 with MSVC 6.0 (under Windows XP) with probstat_0.912.tgz
I made a series of #ifdef changes to switch every "long long" to "__int64", but there is probably a nicer way.
Logged In: YES
user_id=591932
Originator: YES
I started on a revamped 1.0 version last week that is just python-centric
(instead of a python wrapper around a neutral-ish core). That should
make compiling it on windows easier and if you are using python2.5
it should be 64 bit clean too (#ifdef'd for older versions).
This was one of my first python extensions and I've learned a lot
about the C/Python interface in the last four(!) years.