^ this is actually the wrong way and very error prone - it took me a while to figure out how this should work, since nobody documented it =)
see the folder
http://code.google.com/p/projecteqem...r/utils/perlxs
see the dummy header for client.h for example - put all method signatures in there you want to export
after that run
./convert client.h Client
it will create perl_client.cpp
directly modyfing perl_client.cpp is a bad idea, because everything somebody manually put in there will be overwritten - hence the big fat warning in this file
" This file was generated automatically by xsubpp version 1.9508 from the 2 * This file was generated automatically by xsubpp version 1.9508 from the
3 * contents of tmp. Do not edit this file, edit tmp instead."
Do not edit....
The plus site of this is, that you can easily remove/add functions you want to export to the dummy header file - you dont need to export every function.
setting up the environment for perl is another thing, you need xsubpp, its easier on unix than on cygwin/windows