Jump to content

ZenkoKXO.

Inactive Member
  • Posts

    32
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by ZenkoKXO.

  1. ScriptLib folder / StdAfx.h

    Remplace:

    #ifdef _DEBUG
        #undef _DEBUG
        #include "Python-2.2/Python.h"
        #define _DEBUG
    #else
        #include "Python-2.2/Python.h"
    #endif
    #include "Python-2.2/node.h"
    #include "Python-2.2/grammar.h"
    #include "Python-2.2/token.h"
    #include "Python-2.2/parsetok.h"
    #include "Python-2.2/errcode.h"
    #include "Python-2.2/compile.h"
    #include "Python-2.2/symtable.h"
    #include "Python-2.2/eval.h"
    #include "Python-2.2/marshal.h"

     To:

    #ifdef _DEBUG
    	#undef _DEBUG
    	#include "Python-2.7/Python.h"
    	#define _DEBUG
    #else
    	#include "Python-2.7/Python.h"
    #endif
    #include "Python-2.7/node.h"
    #include "Python-2.7/grammar.h"
    #include "Python-2.7/token.h"
    #include "Python-2.7/parsetok.h"
    #include "Python-2.7/errcode.h"
    #include "Python-2.7/compile.h"
    #include "Python-2.7/symtable.h"
    #include "Python-2.7/eval.h"
    #include "Python-2.7/marshal.h"

    ScriptLib folder / PythonLauncher.cpp

    Remplace:

    #include "Python-2.2/frameobject.h"

    To:

    #include "Python-2.7/frameobject.h"

    ScriptLib folder / PythonLauncher.h

    Remplace:

    #include "Python-2.2/frameobject.h"

    To:

    #include "Python-2.7/frameobject.h"

    ScriptLib folder / PythonMarshal.cpp

    Remplace:

    #include "Python-2.2/longintrepr.h"

    To:

    #include "Python-2.7/longintrepr.h"

    ScriptLib folder / PythonUtils.cpp

    Search (top of the file):

    #include "PythonUtils.h"

    Add this just after:

    #define PyLong_AsLong PyLong_AsLongLong
    #define PyLong_AsUnsignedLong PyLong_AsUnsignedLongLong

    UserInterface folder / UserInterface.cpp

    Remplace:

    #pragma comment( lib, "python22.lib" )

    To:

    #pragma comment( lib, "python27.lib" )

    In your include folder / python-2.7 folder / symtable.h

    Search:

    PyAPI_FUNC(struct symtable *) PySymtable_Build(mod_ty, const char *,
                                                  PyFutureFeatures *);

    And comment these two lines like that:

    //PyAPI_FUNC(struct symtable *) PySymtable_Build(mod_ty, const char *,
    //                                              PyFutureFeatures *);

    If you need any file from lib/include just tell us.

    • Love 1
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.