From: SourceForge.net <no...@so...> - 2008-06-08 18:33:40
|
Bugs item #1988296, was opened at 2008-06-08 20:33 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=1988296&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: python Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Gaetan Lehmann (gleh) Assigned to: Nobody/Anonymous (nobody) Summary: Swig::GCItem::~GCItem() can be duplicated Initial Comment: When trying to link to files produced by running swig on modules with directors unable with %module(directors="1") modulename I get the error: ld: duplicate symbol Swig::GCItem::~GCItem()in CMakeFiles/VXLNumericsPython.dir/wrap_vcl_complexPython.o and CMakeFiles/VXLNumericsPython.dir/VXLNumericsPython.o This problem can be fixed with this patch: Index: Lib/python/director.swg =================================================================== --- Lib/python/director.swg (revision 10522) +++ Lib/python/director.swg (working copy) @@ -107,7 +107,7 @@ /* memory handler */ struct GCItem { - virtual ~GCItem() = 0; + virtual ~GCItem() {}; virtual int get_own() const { @@ -115,10 +115,6 @@ } }; - GCItem::~GCItem() - { - } - struct GCItem_var { GCItem_var(GCItem *item = 0) : _item(item) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=1988296&group_id=1645 |
From: SourceForge.net <no...@so...> - 2008-09-02 23:02:52
|
Bugs item #1988296, was opened at 2008-06-08 18:33 Message generated for change (Comment added) made by wsfulton You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=1988296&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: python Group: None >Status: Closed >Resolution: Accepted Priority: 5 Private: No Submitted By: Gaetan Lehmann (gleh) >Assigned to: William Fulton (wsfulton) Summary: Swig::GCItem::~GCItem() can be duplicated Initial Comment: When trying to link to files produced by running swig on modules with directors unable with %module(directors="1") modulename I get the error: ld: duplicate symbol Swig::GCItem::~GCItem()in CMakeFiles/VXLNumericsPython.dir/wrap_vcl_complexPython.o and CMakeFiles/VXLNumericsPython.dir/VXLNumericsPython.o This problem can be fixed with this patch: Index: Lib/python/director.swg =================================================================== --- Lib/python/director.swg (revision 10522) +++ Lib/python/director.swg (working copy) @@ -107,7 +107,7 @@ /* memory handler */ struct GCItem { - virtual ~GCItem() = 0; + virtual ~GCItem() {}; virtual int get_own() const { @@ -115,10 +115,6 @@ } }; - GCItem::~GCItem() - { - } - struct GCItem_var { GCItem_var(GCItem *item = 0) : _item(item) ---------------------------------------------------------------------- >Comment By: William Fulton (wsfulton) Date: 2008-09-02 23:02 Message: Logged In: YES user_id=242951 Originator: NO Committed for swig-1.3.37. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=1988296&group_id=1645 |