Problem in the generated .cxx file

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Problem in the generated .cxx file

Grégory S
Hi,

Using Visual 2013, Swig 3.0.10 to export to C#
I have a project DLL (MyLib with a swig interface to wrap it) which depend on another DLL (MyUtilLib not compiled with swig).
The interface file of MyLib is:

-----------------------------------
%module MyLib

%include <windows.i>

%include "..\MyUtilLib\MyUtilLib.i"

%{
#include "MyLib.h"
%}

%include "MyLib.h"
-----------------------------------

MyUtilLib.i is:

-----------------------------------
%module MyUtilLib

%include <windows.i>
%include std_string.i

%{
include "setup.h"
include "MyClass.h"
%}

%rename(__Equal__) MyClass::operator=;
%rename(__PlusEqual__) MyClass::operator+=;

%include "setup.h"
%include "MyClass.h"
-----------------------------------

The generated .cxx file has an error. It generates somewhere:
include "setup.h"
include "MyClass.h"

instead of:
#include "setup.h"
#include "MyClass.h"

Regards,
Gregory





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

_______________________________________________
Swig-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/swig-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem in the generated .cxx file

William S Fulton
On 5 August 2016 at 08:33, Grégory S <[hidden email]> wrote:

> %{
> include "setup.h"
> include "MyClass.h"
> %}
Fix it here!

> The generated .cxx file has an error. It generates somewhere:
> include "setup.h"
> include "MyClass.h"
>
> instead of:
> #include "setup.h"
> #include "MyClass.h"
>

William

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
Swig-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/swig-user
Loading...