I'm generating python wrapper for the mentioned function. When I call from python, it is not converting the argument of type uint16 & and my call is failing.


On Sun, Mar 2, 2014 at 11:52 PM, sandeep reddy <sandeep.bireddy@gmail.com> wrote:
Yes. I included the stdint.i file as: %include <stdint.i>
Does thegeneric apply directive like this work: %apply bool &OUTPUT { int & };

Sandeep


On Sun, Mar 2, 2014 at 11:14 PM, Kris Lamb <lamb.kris@gmail.com> wrote:

Did you include stdint.i to your interface file?

On 2014-03-02 12:12 PM, "sandeep reddy" <sandeep.bireddy@gmail.com> wrote:


---------- Forwarded message ----------
From: sandeep reddy <sandeep.bireddy@gmail.com>
Date: Sun, Mar 2, 2014 at 10:37 PM
Subject: help in swig arguments for calling C++[urgent]
To: swig-user@lists.sourceforge.net


Hi,
I'm new to Swig and I have a problem with calling one of my c++ function via swig. My function has the signature:  virtual bool boot(uint16 &id)
This is listed in a namespace like:
Host::abc::server.cpp and the server.cpp file has the above function. I have written a wrapper and all other functions are working fine. But the call to this function is failing saying that argument expected is unit16&. I tried various methods of typemapping the input argument. But nothing is working. I need help on handling this.

This is what I tried:
%apply Host::abc::server::boot* {Host::abc::server::boot&};
and also in a generic way, But nothing worked. Appreciate your help on this

Sandeep


------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
Swig-user mailing list
Swig-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swig-user