[Bf-python] gcc 4.0 compile error with CurveNurbs

Campbell Barton cbarton at metavr.com
Fri Apr 22 04:11:04 CEST 2005


Hi, just got gcc4.0 and tried to compile Blender.
the ONLY problem I had was with CurNurb.c

54:      extern PyMethodDef BPy_CurNurb_methods[];
586:    static PyMethodDef BPy_CurNurb_methods[] = {

Changing extern to static on line 54 worked but I dont realy know the 
implications of what Im doing.

Output
source/blender/python/api2_2x/CurNurb.c: In function 'M_CurNurb_New':
source/blender/python/api2_2x/CurNurb.c:212: warning: unused parameter 
'self'
source/blender/python/api2_2x/CurNurb.c:212: warning: unused parameter 
'args'
source/blender/python/api2_2x/CurNurb.c: At top level:
source/blender/python/api2_2x/CurNurb.c:568: error: static declaration 
of 'BPy_CurNurb_methods' follows non-static declaration
source/blender/python/api2_2x/CurNurb.c:54: error: previous declaration 
of 'BPy_CurNurb_methods' was here
scons: *** 
[/storage/build/linux2/source/blender/python/api2_2x/CurNurb.o] Error 1
scons: building terminated because of errors.
/blender >



-- 
Campbell J Barton

133 Hope Street
Geelong West, Victoria 3218 Australia

URL:    http://www.metavr.com
e-mail: cbarton at metavr.com
phone: AU (03) 5229 0241




More information about the Bf-python mailing list