I've written something with Inline which I'm happy with, and I'd like to try using SWIG. I've got strawberry 5.12, cygwin (without the perl distro), Windows 7, and the SWIG zip unzipped without anything else being done (no env vars set etc). Getting as far as the following took a fair bit of trial and error, but I'm now stuck with:
mimi@mimi-PC ~
$ export CYGWIN=nodosfilewarning
mimi@mimi-PC ~
$ SRCS=C:/Users/mimi/swig/Examples/perl5/simple/example.c
mimi@mimi-PC ~
$ OBJS=C:/Users/mimi/swig/Examples/perl5/simple/example.o
mimi@mimi-PC ~
$ LIBPATH="-LC:/strawberry/perl/lib/CORE -LC:/strawberry/c/lib"
mimi@mimi-PC ~
$ LIBS=-lperl512
mimi@mimi-PC ~
$ cd C:/Users/mimi/swig/Examples/perl5/simple
mimi@mimi-PC /cygdrive/c/Users/mimi/swig/Examples/perl5/simple
$ ../../../swig -perl5 example.i
mimi@mimi-PC /cygdrive/c/Users/mimi/swig/Examples/perl5/simple
$ gcc -c $SRCS
mimi@mimi-PC /cygdrive/c/Users/mimi/swig/Examples/perl5/simple
$ gcc -shared $OBJS $LIBPATH $LIBS -o example.dll
mimi@mimi-PC /cygdrive/c/Users/mimi/swig/Examples/perl5/simple
$ perl -Mexample
Can't find 'boot_example' symbol in ./example.dll
at example.pm line 11
Compilation failed in require.
BEGIN failed--compilation aborted.
I have read this which is quite spare on exact detail that I can fathom.
So any help would be highly appreciated.