From: SourceForge.net <no...@so...> - 2012-04-19 14:51:47
|
Bugs item #3519394, was opened at 2012-04-18 23:28 Message generated for change (Comment added) made by You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=3519394&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: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: https://www.google.com/accounts () Assigned to: Nobody/Anonymous (nobody) Summary: #include within fragment is being ignored Initial Comment: I was trying to use fragments as documented in http://www.swig.org/Doc2.0/SWIGDocumentation.html#Typemaps_fragments but failed to generate a wrapper that correctly includes a header file as specified within a fragment. According to the documentation the following should work: %fragment("vtkPythonUtil", "header") { /* before */ #include <vtkPythonUtil.h> /* after */ } %fragment("vtkPythonUtil"); However, if I look in the generated cpp wrapper file, I only find: /* before */ /* after */ Please note the blank line between the two comments. My solution is to unconditionally include the header file by using %{ #include <vtkPythonUtil.h> %} ---------------------------------------------------------------------- Comment By: https://www.google.com/accounts () Date: 2012-04-19 07:51 Message: I've had the same problem today! (swig 2.0.4) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=3519394&group_id=1645 |