What I really want to do is to work with a third-party DLL for which I have a dll.h header file and an Exports.def file. I don't have a static version
I don't know how you can create a static library with that, but you could create an import library for the dll:
dlltool --kill-at --input-def your.def --output-lib lib_choose_a_name.
+a
Then you need to link to lib_choose_a_name.a when building the project.
I don't know how to link the XS code to that import library without using ExtUtils::MakeMaker.
The dll will still be need to be found at runtime (so it needs to be in the path or the cwd) but the code in the XS file you originally presented should then need no modification - assuming, of course, that "dll.h" contains the declaration of the "own_function" function (and that your dll exports that function).
Cheers,
Rob
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.