<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig">
    <title>gmane.comp.programming.swig</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/18762"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/18761"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/18760"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/18759"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/18758"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/18757"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/18756"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/18755"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/18754"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/18753"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/18752"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/18751"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/18750"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/18749"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/18748"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/18747"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/18746"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/18745"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/18744"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/18743"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/18762">
    <title>Re: Best way to debug python error 'XXX undetectederror'?</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/18762</link>
    <description>&lt;pre&gt;To be more specific, I had just added this out typemap to convert a list of my structures to a native python type:


%typemap(out) list&amp;lt;FileObj&amp;gt;
{
$result = PyList_New(0);
int index = 0;
for(auto iter = $1.begin(); iter != $1.end(); iter++)
{
auto resultobj = SWIG_NewPointerObj((new FileObj(static_cast&amp;lt; const FileObj&amp;amp; &amp;gt;(*iter))), SWIGTYPE_p_FileObj, SWIG_POINTER_OWN |  0 );
PyList_SetItem($result, index, resultobj);
}

}

Is there something about ownership of the object I am not handling correctly here?

-Jason
________________________________________
From: Jason Dictos [jdictos&amp;lt; at &amp;gt;barracuda.com]
Sent: Friday, May 18, 2012 8:05 AM
To: swig-user&amp;lt; at &amp;gt;lists.sourceforge.net
Subject: [Swig-user] Best way to debug python error 'XXX undetected error'?

So I’m in the midst of a fairly complex swig project with python, and these ‘XXX undetected error’ messages started showing up. Usually after I add a new wrapped object.

What’s the best  way to debug this? Where do I start?

Thanks,
-Jason

---------------&lt;/pre&gt;</description>
    <dc:creator>Jason Dictos</dc:creator>
    <dc:date>2012-05-18T12:14:25</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/18761">
    <title>Best way to debug python error 'XXX undetected error'?</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/18761</link>
    <description>&lt;pre&gt;So I'm in the midst of a fairly complex swig project with python, and these 'XXX undetected error' messages started showing up. Usually after I add a new wrapped object.

What's the best  way to debug this? Where do I start?

Thanks,
-Jason

'Like' us on Facebook for exclusive content and other resources on all Barracuda Networks solutions.
Visit http://barracudanetworks.com/facebook


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________
Swig-user mailing list
Swig-user&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swig-user
&lt;/pre&gt;</description>
    <dc:creator>Jason Dictos</dc:creator>
    <dc:date>2012-05-18T12:05:58</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/18760">
    <title>Re: Need help, pay for it.</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/18760</link>
    <description>&lt;pre&gt;
Hello,

I could probably help you, but I need to understand the amount of work to be
done. Could you provide some additional information? I'm interested in the
amount of custom classes enums and etc. Or could you probably show some C++
headers for example.

Regards,
Alex.


Damir Enseleit wrote:

&lt;/pre&gt;</description>
    <dc:creator>AlBor</dc:creator>
    <dc:date>2012-05-18T11:46:55</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/18759">
    <title>Re: Can't get the DLL file</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/18759</link>
    <description>&lt;pre&gt;
YES!!! It works!

Thank you :D


agurnani wrote:

&lt;/pre&gt;</description>
    <dc:creator>Alberchou</dc:creator>
    <dc:date>2012-05-18T11:27:35</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/18758">
    <title>Re: Can't get the DLL file</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/18758</link>
    <description>&lt;pre&gt;Provide the command line options in the compile/link line to name the output
DLL _Ejecutor.pyd (instead of _Ejecutor.dll) and follow the same steps 

-----Original Message-----
From: Alberchou [mailto:tuner_by_the_way&amp;lt; at &amp;gt;hotmail.com] 
Sent: Friday, May 18, 2012 6:03 AM
To: swig-user&amp;lt; at &amp;gt;lists.sourceforge.net
Subject: Re: [Swig-user] Can't get the DLL file


Hello again,

Summarizing:

1- I did my Ejecutor.i and got my Ejecutor.py and Ejecutor_wrap.cxx by "swig
-c++ -python Ejecutor.i"
2- I did a DLL Library project in Dev-C++ including all my c++ project files
and Ejecutor_wrap.cxx.
3- I put at Compiler options this command in the compiler line: "-I
..\..\..\python\include"
4- At project options, I put all the python libraries path
(..\..\..\python\libs\&amp;lt;lib&amp;gt;) at linker parameters.
5- I compiled and it gaves me an _Ejecutor.dll and a lib_Ejecutor.a
6- I put the path to _Ejecutor.dll in my PATH environment variable.
7- import Ejecutor in my python project.

And finally it still gives me the following compiling error&lt;/pre&gt;</description>
    <dc:creator>Anil Gurnani</dc:creator>
    <dc:date>2012-05-18T11:13:12</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/18757">
    <title>Need help, pay for it.</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/18757</link>
    <description>&lt;pre&gt;Hi all,

I want an unmanaged C++ with SWIG DLL to convert to a managed C# DLL.
However, I do not know myself so well with C++ and from SWIG. Can someone
help me? I pay for it!

 

Damir

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________
Swig-user mailing list
Swig-user&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swig-user
&lt;/pre&gt;</description>
    <dc:creator>Damir Enseleit</dc:creator>
    <dc:date>2012-05-18T10:21:52</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/18756">
    <title>Re: Can't get the DLL file</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/18756</link>
    <description>&lt;pre&gt;
I tried that and even not work :(



Kris Thielemans-3 wrote:

&lt;/pre&gt;</description>
    <dc:creator>Alberchou</dc:creator>
    <dc:date>2012-05-18T10:21:06</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/18755">
    <title>Re: Can't get the DLL file</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/18755</link>
    <description>&lt;pre&gt;Hi
I would have thought that Windows finds DLLs in the PATH, but maybe you
could first try to copy your dll to the current directory (or the python
directory) etc?

Kris

"swig
files
and


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
&lt;/pre&gt;</description>
    <dc:creator>Kris Thielemans</dc:creator>
    <dc:date>2012-05-18T10:14:37</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/18754">
    <title>Re: Can't get the DLL file</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/18754</link>
    <description>&lt;pre&gt;
Hello again,

Summarizing:

1- I did my Ejecutor.i and got my Ejecutor.py and Ejecutor_wrap.cxx by "swig
-c++ -python Ejecutor.i"
2- I did a DLL Library project in Dev-C++ including all my c++ project files
and Ejecutor_wrap.cxx.
3- I put at Compiler options this command in the compiler line: "-I
..\..\..\python\include"
4- At project options, I put all the python libraries path
(..\..\..\python\libs\&amp;lt;lib&amp;gt;) at linker parameters.
5- I compiled and it gaves me an _Ejecutor.dll and a lib_Ejecutor.a
6- I put the path to _Ejecutor.dll in my PATH environment variable.
7- import Ejecutor in my python project.

And finally it still gives me the following compiling error:

[...]
File "C:\Panda3D-1.7.2\samples\PFC\Ejecutor.py", line 26, in &amp;lt;module&amp;gt;
    _Ejecutor = swig_import_helper()
  File "C:\Panda3D-1.7.2\samples\PFC\Ejecutor.py", line 18, in
swig_import_helper
    import _Ejecutor
  ImportError: No module named _Ejecutor

What am I doing bad :(??



agurnani wrote:
&lt;/pre&gt;</description>
    <dc:creator>Alberchou</dc:creator>
    <dc:date>2012-05-18T10:03:06</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/18753">
    <title>Re: how to map typedef function pointer to a csharp delegate?</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/18753</link>
    <description>&lt;pre&gt;
Here is my macro for marshaling C# delegates:

////////////////////////////////////////////////////////////////////////////////
// %cs_callback is used to marshall callbacks. It allows a C# function to
// be passed to C++ as a function pointer through P/Invoke, which has the
// ability to make unmanaged-to-managed thunks. It does NOT allow you to
// pass C++ function pointers to C#.
//
// I would have liked to support FastDelegate&amp;lt;...&amp;gt; as the C++ argument
// type; this would have involved the cs_callback2 macro... but it turns
// out not to work under default project settings because .NET functions
// use the __stdcall calling convention, but FastDelegate uses the default
// convention which tends to be something else (__fastcall?)
//
// Anyway, to use this macro you need to declare the function pointer type
// TYPE in the appropriate header file (including the calling convention),
// declare a delegate named after CSTYPE in your C# project, and use this
// macro in your .i file. Here is an example:
//
// i&lt;/pre&gt;</description>
    <dc:creator>David Piepgrass</dc:creator>
    <dc:date>2012-05-17T16:15:05</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/18752">
    <title>Re: Can't get the DLL file</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/18752</link>
    <description>&lt;pre&gt;In your C++ compile/link line you need to make sure you give the appropriate
command line arguments to build a DLL and to name the new DLL _Ejecutor.dll
- and then when you run Python, make sure that DLL is in your PATH.


-----Original Message-----
From: Alberchou [mailto:tuner_by_the_way&amp;lt; at &amp;gt;hotmail.com] 
Sent: Thursday, May 17, 2012 6:32 AM
To: swig-user&amp;lt; at &amp;gt;lists.sourceforge.net
Subject: [Swig-user] Can't get the DLL file


Hi everyone,

I'm using swig between python and c++. I got my wrap file, compiled with my
c++ project and linked with the python libraries:

NOTE: I'm using Dev-C++ in Windows, "-I python/include" &amp;lt;- to compile and
linked with "python/libs"

But I don't get the DLL file and I don't know why.

Then, when I try to import my Ejecutor.py (this is the extension) to my
Python project, it gives me the following error:

  File "C:\Panda3D-1.7.2\samples\PFC\Ejecutor.py", line 26, in &amp;lt;module&amp;gt;
    _Ejecutor = swig_import_helper()
  File "C:\Panda3D-1.7.2\samples\PFC\Ejecutor.py", line 18, in
swig_import&lt;/pre&gt;</description>
    <dc:creator>Anil Gurnani</dc:creator>
    <dc:date>2012-05-17T11:58:56</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/18751">
    <title>Can't get the DLL file</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/18751</link>
    <description>&lt;pre&gt;
Hi everyone,

I'm using swig between python and c++. I got my wrap file, compiled with my
c++ project and linked with the python libraries:

NOTE: I'm using Dev-C++ in Windows, "-I python/include" &amp;lt;- to compile and
linked with "python/libs"

But I don't get the DLL file and I don't know why.

Then, when I try to import my Ejecutor.py (this is the extension) to my
Python project, it gives me the following error:

  File "C:\Panda3D-1.7.2\samples\PFC\Ejecutor.py", line 26, in &amp;lt;module&amp;gt;
    _Ejecutor = swig_import_helper()
  File "C:\Panda3D-1.7.2\samples\PFC\Ejecutor.py", line 18, in
swig_import_helper
    import _Ejecutor
  ImportError: No module named _Ejecutor

Could you help me, please?

Thanks Alot!!
&lt;/pre&gt;</description>
    <dc:creator>Alberchou</dc:creator>
    <dc:date>2012-05-17T10:32:09</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/18750">
    <title>Re: how to map typedef function pointer to a csharp delegate?</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/18750</link>
    <description>&lt;pre&gt;Hi William,

Thanks for pointing out the direction.
I will have a look at the SWIGStringHelper.

BR,
Sylvia

-----Original Message-----
From: William Fulton [mailto:william&amp;lt; at &amp;gt;fultondesigns.co.uk] On Behalf Of William S Fulton
Sent: Wednesday, 16 May 2012 5:56 AM
To: Sylvia Liu
Cc: swig-user&amp;lt; at &amp;gt;lists.sourceforge.net
Subject: Re: [Swig-user] how to map typedef function pointer to a csharp delegate?

On 24/04/12 03:48, Sylvia Liu wrote:
SWIG doesn't wrap a typedef as anything in particular. Mapping function pointers to delegates requires quite a bit of hand written SWIG code. 
Take a look at the Lib/csharp directory and look at the way the SWIGStringHelper uses SWIG_CSharpStringHelperCallback to map it onto SWIGStringDelegate.

William

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security&lt;/pre&gt;</description>
    <dc:creator>Sylvia Liu</dc:creator>
    <dc:date>2012-05-17T05:48:15</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/18749">
    <title>Re: SWIG issue with typedefs</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/18749</link>
    <description>&lt;pre&gt;On Wed, 16 May 2012 15:46:38 +0100
William S Fulton &amp;lt;wsf&amp;lt; at &amp;gt;fultondesigns.co.uk&amp;gt; wrote:


William,

Thank you for your reply.

I've confirmed that, even in swig-2.0.4, template-instantiating the
Wrapper&amp;lt;Param&amp;gt; type resolves the issue.

However, if you take a close look at the example, you should see that
there's some confusion between static and dynamic information: the
"SubType2" class does not hold an instance of Wrapper&amp;lt;Param&amp;gt;, nor do
any of its methods take a non-reference argument of Wrapper&amp;lt;Param&amp;gt;, nor
do they return one.

Using the C++ compiler, no template instance of Wrapper&amp;lt;Param&amp;gt; is
emitted, as none is needed - it has no run-time existence.

In SWIG, analogously, no glue function which expects a Wrapper&amp;lt;Param&amp;gt;
or operates on one is created by the "%template()
SubType2&amp;lt;Wrapper&amp;lt;Param&amp;gt; &amp;gt;;" line, so I wouldn't expect to have to do
"%template() Wrapper&amp;lt;Param&amp;gt;;".
The only thing the concrete type is used for is extracting the
(statically available!) "WrappedType" typedef. So why must I create a
run-time rep&lt;/pre&gt;</description>
    <dc:creator>Bryan Jacobs</dc:creator>
    <dc:date>2012-05-16T15:37:11</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/18748">
    <title>Ignore type conversion?</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/18748</link>
    <description>&lt;pre&gt;Hello, I am having a problem in Ruby bindings created by SWIG.  I have several classes, let's say class A and class B, that inherit from QObject.  Class A and B are totally unrelated to each other.  I want SWIG to generate inherited members for QObject in both class A and class B.  SWIG seems to be generating conversions from QObject-&amp;gt;A, QObject-&amp;gt;B, A-&amp;gt;B, B-&amp;gt;A.  How can I control which of these conversions are generated and ignore the ones I don't want?

Thanks a lot,
Dan
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________
Swig-user mailing list
Swig-user&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swi&lt;/pre&gt;</description>
    <dc:creator>Macumber, Daniel</dc:creator>
    <dc:date>2012-05-16T15:01:20</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/18747">
    <title>Re: how to map typedef function pointer to a csharpdelegate?</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/18747</link>
    <description>&lt;pre&gt; &amp;gt; Hi,
 &amp;gt;
 &amp;gt; I have a C++ class which defines a function pointer type like this:
 &amp;gt;
 &amp;gt; Class MyClass {
 &amp;gt;
 &amp;gt; public:
 &amp;gt;
 &amp;gt; typedef void (*UserCallBack)(void *user_data);
 &amp;gt;
 &amp;gt; static void setUserCallBack(UserCallBack *callback);
 &amp;gt;
 &amp;gt; }
 &amp;gt;
 &amp;gt; How can I map the UserCallBack in C++ to a delegate in C#?
 &amp;gt;
 &amp;gt; Seems the swig just ignore the typedef inside a class.
 &amp;gt;
SWIG doesn't wrap a typedef as anything in particular. Mapping function 
pointers to delegates requires quite a bit of hand written SWIG code. 
Take a look at the Lib/csharp directory and look at the way the 
SWIGStringHelper uses SWIG_CSharpStringHelperCallback to map it onto 
SWIGStringDelegate.

William


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://ww&lt;/pre&gt;</description>
    <dc:creator>William S Fulton</dc:creator>
    <dc:date>2012-05-16T14:52:37</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/18746">
    <title>Re: SWIG issue with typedefs</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/18746</link>
    <description>&lt;pre&gt;
Note a possibly better solution is to replace:

%template(wrapper_param) Wrapper&amp;lt;Param&amp;gt;;

with

%template() Wrapper&amp;lt;Param&amp;gt;;

Also, note that swig-2.0.5 had some fixes in this area of typedef 
resolution for templates, so it may not have worked in swig-2.0.4 which 
was current when you posted this, you might want to check.

William

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
&lt;/pre&gt;</description>
    <dc:creator>William S Fulton</dc:creator>
    <dc:date>2012-05-16T14:46:38</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/18745">
    <title>Re: SWIG issue with typedefs</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/18745</link>
    <description>&lt;pre&gt;
Bryan, you havn't got SWIG to parse Wrapper&amp;lt;&amp;gt; so it'll never know what 
it is. I've modified your swig.i file to:


%module generated

%{
#include "param.h"
#include "subtype.h"
#include "subtype2.h"
#include "wrapper.h"
%}

%include "std_string.i"

%include "param.h"
%include "subtype.h"
%include "subtype2.h"
%include "wrapper.h"

%template(wrapper_param) Wrapper&amp;lt;Param&amp;gt;;
%template(st_instance) SubType&amp;lt;Param&amp;gt;;
%template(st_instance2) SubType2&amp;lt;Wrapper&amp;lt;Param&amp;gt; &amp;gt;;

Now I get:

$ python run.py
hello Python world
hello Python world

I used swig-2.0.6.

William

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
&lt;/pre&gt;</description>
    <dc:creator>William S Fulton</dc:creator>
    <dc:date>2012-05-16T14:42:24</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/18744">
    <title>Re: Need help with python &lt;-&gt; c++</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/18744</link>
    <description>&lt;pre&gt;
Thanks a lot!! I put "-I ..\..\..\python\include" and it compiled but gave me
several "Linker error"... so I suppose I have to link like you said.

Could you tell me how to do this?? Thanks :)



agurnani wrote:

&lt;/pre&gt;</description>
    <dc:creator>Alberchou</dc:creator>
    <dc:date>2012-05-16T11:54:04</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/18743">
    <title>Re: Need help with python &lt;-&gt; c++</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/18743</link>
    <description>&lt;pre&gt;You need to compile the wrapper cxx file that was generate using the -I flag
to include Python include directories - (they are installed with Python so
look in the directory where you installed Python) - then you also have to
link it with the Python libraries (again they are installed with Python) -
this will generate a .dll file - which needs to be in PATH when you execute
your sample that uses the wrapped code.

Hope this helps.

-----Original Message-----
From: Alberchou [mailto:tuner_by_the_way&amp;lt; at &amp;gt;hotmail.com] 
Sent: Wednesday, May 16, 2012 4:42 AM
To: swig-user&amp;lt; at &amp;gt;lists.sourceforge.net
Subject: [Swig-user] Need help with python &amp;lt;-&amp;gt; c++


Hi everybody, I'm new at this and I have just started using Swig and reading
some tutorials but unfortunately I don't have any time to spend learning how
to use this powerful tool, so I need urgent help: 

I'm trying to use Swig between python and c++ so: 

Python calls c++ with two parameters: (int, int*) and c++ returns to python
a string. 

This is the function I'm using a&lt;/pre&gt;</description>
    <dc:creator>Anil Gurnani</dc:creator>
    <dc:date>2012-05-16T09:06:27</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/18742">
    <title>Need help with python &lt;-&gt; c++</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/18742</link>
    <description>&lt;pre&gt;
Hi everybody, I'm new at this and I have just started using Swig and reading
some tutorials but unfortunately I don't have any time to spend learning how
to use this powerful tool, so I need urgent help: 

I'm trying to use Swig between python and c++ so: 

Python calls c++ with two parameters: (int, int*) and c++ returns to python
a string. 

This is the function I'm using at c++: 

/* Ejecutor.cpp */ 

#include "Ejecutor.h" 

string ejecutarBusqueda(int cantidad, int *vehiculos){ 
    IDA ida; 
    return ida.inicializarIDA(cantidad, vehiculos); 
} 

/* Ejecutor.h */ 

#include "IDA.h" 
#include &amp;lt;string&amp;gt; 
using namespace std; 

string ejecutarBusqueda(int cantidad, int *vehiculos); 

-------------- 

Then, I did my interface file: 

%module Ejecutor 
 %{ 
 /* Includes the header in the wrapper code */ 
 #include "Ejecutor.h" 
 %} 
  
 /* Parse the header file to generate wrappers */ 
 %include "Ejecutor.h" 

-------------- 

And Finally, I wrap (in Windows) with: 

swig -c++ - python somePath/Ejecutor.i 
&lt;/pre&gt;</description>
    <dc:creator>Alberchou</dc:creator>
    <dc:date>2012-05-16T08:42:08</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.programming.swig">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.programming.swig</link>
  </textinput>
</rdf:RDF>

