From: SourceForge.net <no...@so...> - 2008-02-08 22:05:24
|
Bugs item #1889865, was opened at 2008-02-08 22:05 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=1889865&group_id=1645 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: lua Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Adam S. Rosien (arosien) Assigned to: Mark Gossage (mgossage) Summary: Lua typemaps fail with gcc 4.x Initial Comment: The lua, typemaps.i defines #ifdef __cplusplus /* generic alloc/dealloc fns*/ #define SWIG_ALLOC_ARRAY(TYPE,LEN) new (TYPE)[LEN] #define SWIG_FREE_ARRAY(PTR) if(PTR){delete[] PTR;} #else #define SWIG_ALLOC_ARRAY(TYPE,LEN) (TYPE *)malloc(LEN*sizeof(TYPE)) #define SWIG_FREE_ARRAY(PTR) if(PTR){free(PTR);} #endif However, new (TYPE)[LEN] is not permitted in GCC 4.x. It should read new TYPE[LEN] I'm not sure if this is backwards compatible though. .. Adam ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=1889865&group_id=1645 |