Menu

#2 long long on Visual C++ 6.0

open
None
5
2006-11-27
2004-05-21
No

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).

Discussion

  • Peter

    Peter - 2006-11-27

    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.

     
  • Jack Diederich

    Jack Diederich - 2006-11-27
    • assigned_to: nobody --> jdh2358
     
  • Jack Diederich

    Jack Diederich - 2006-11-27

    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.

     

Log in to post a comment.