19 Nov 23:18
Re: although %renamed "Can't wrap fun<(X)> unless renamed..."
From: Patrick M. <meierpatrick <at> ymail.com>
Subject: Re: although %renamed "Can't wrap fun<(X)> unless renamed..."
Newsgroups: gmane.comp.programming.swig
Date: 2008-11-19 22:18:07 GMT
Subject: Re: although %renamed "Can't wrap fun<(X)> unless renamed..."
Newsgroups: gmane.comp.programming.swig
Date: 2008-11-19 22:18:07 GMT
Thank you for the suggestions. Unfortunately it doesn't help me to suppress the warnings. Firstly, I must have a working wrapper of the friend function. Secondly, this single problem is the source of a huge number of swig errors that are caused by the friend function which is missing in the wrapper code. Therefore I'm still looking for explanations to understand the problem, or even better for help how to solve it and have the friend function wrapped in the interface. Thank you, Patrick John Lenz-2 wrote: > > On 11/19/2008 10:46 AM, David Piepgrass wrote: >> SWIG has a weird habit of trying to wrap friend declarations, or at >> least doing something other than just ignoring them as it ought to. >> >> I have the following friend declaration in my "MapControlPainter" class >> (don't ask ;)): >> >> friend void SWIGSTDCALL CSharp_MapControlPainter_ResizeViewport(void * >> jarg1, int jarg2, int jarg3); >> >> SWIG says the same thing: >> >> ..\..\Control\MapControlPainter.h(167): Warning(503): Can't wrap(Continue reading)