Just in has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Building a SWIG example on cygwin
by Anonymous Monk on Apr 16, 2011 at 17:39 UTC | |
by Just in (Sexton) on Apr 17, 2011 at 00:50 UTC |