Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Python MapScript broken with SWIG 2.0.5 #4325
added a commit
this pull request
Sep 30, 2012
The error was arising because swig in recent versions is ignoring constructors who's name doesn't match the original c-struct name, namely for mapObj, layerObj, classObj and errorObj which are defined as map_obj, layer_obj, class_obj and error_obj.
The proposed fix changes our use of map_obj into mapObj everywhere, which fixes this swig issue. However I fear that this is going to have some side effects as some compilers might be upset by this change. For reference, the commit that first introduced this notation is a332c37 (yeah, that's old :) )
maybe @dmorissette has some insight as to why this syntax was used ?