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

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


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.
Swig-user mailing list