Re: Anyone tried wrapping DMD with Swig?

2012-08-09 Thread David Nadlinger
On Thursday, 9 August 2012 at 00:28:32 UTC, Andrej Mitrovic wrote: This is my .i file: https://gist.github.com/3299941 I've ran: swig -c++ -Isrc/root -IC:\MinGW\lib\gcc\mingw32\4.6.1\include -IC:\MinGW\include -includeall -d -d2 dmd_all.i C:\MinGW\include\stdlib.h(96) : Error: Syntax error in

Re: Anyone tried wrapping DMD with Swig?

2012-08-09 Thread Andrej Mitrovic
On 8/9/12, David Nadlinger s...@klickverbot.at wrote: Have you tried adding a »%module dmd« directive to the top of your .i file? That fixes it, thanks.

Anyone tried wrapping DMD with Swig?

2012-08-08 Thread Andrej Mitrovic
This is my .i file: https://gist.github.com/3299941 I've ran: swig -c++ -Isrc/root -IC:\MinGW\lib\gcc\mingw32\4.6.1\include -IC:\MinGW\include -includeall -d -d2 dmd_all.i C:\MinGW\include\stdlib.h(96) : Error: Syntax error in input(1). Without using -includeall I get a lot of warnings but swig