meetraz has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to create a new module called PatrolAgent that allows perl to interface with the BMC Patrol API. I tried running h2xs against the .h file for the API, but most of the functions in the header are prefixed with "DLL_IMPORT" so the resulting xs and pm files don't define any of the functions I need. It tries to define a function called "DLL_IMPORT" - this doesn't look correct.
Am I doing something wrong? Do I need to create my own .c and .h files with functions to interface with each and every function I want to access in the API? But then, I don't understand where my C source would go?
Any advice would be greatly appreciated.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: h2xs question
by sauoq (Abbot) on Sep 05, 2002 at 19:26 UTC |