[Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [11618] branches/pyapi_devel/source/ blender/python/api2_2x: aparently MSVC was giving errors here

jmsoler jmsoler at free.fr
Fri Aug 24 16:12:41 CEST 2007


jmsoler a écrit :
> Campbell Barton a écrit :
>   
> When making a subtype you need to reference the base type (tp_base),
>> which should be accessible when including Python.h
>>
>> Heres pythons example module,
>> http://svn.python.org/projects/python/trunk/Modules/xxsubtype.c
>>
>> for MSVC we might need to use the DEFERRED_ADDRESS macro.
>>
>>   DEFERRED_ADDRESS(&PyList_Type),		/* tp_base */
>>
>>
>> What is the error the compiler throws anyway?
>>
>>   
>>     
> I will make a new one to see exactly.  
>
>   
the text error :
"bpy_float.c source\blender\python\api2_2x\bpy_float.c(137) : error 
C2099: l'initialiseur n'est pas une constante
(the initialisor is not a constant)
source\blender\python\api2_2x\bpy_float.c(142) : warning C4047: 
'initialisation'  : 'Py_ssize_t' diffère de 'initproc' dans les niveaux 
d'indirection
scons: *** 
[K:\developpement\bf-blender\build-pyapi\win32-vc\source\blender\python\api2_2x\bpy_float.obj] 
Error 2
scons: building terminated because of errors.
"

With "DEFERRED_ADDRESS(", the the text errors is :
"bpy_float.c
source\blender\python\api2_2x\bpy_float.c(137) : warning C4013: 'DEFERRED_ADDRESS' non défini(e) ; extern retournant int pris par défaut
source\blender\python\api2_2x\bpy_float.c(137) : error C2099: l'initialiseur n'est pas une constante
"

-- 
Best regards, 
jms ( http://www.amazon.fr/Blender-Starter-Kit-Divers/dp/2744021741 )





More information about the Bf-committers mailing list