undefined reference to `DPGetCtrlStatus'

Is there an import lib (.a or .lib file) for the dll ? If so - what is its name and where is it located ?
With that information, we can fix it so that we link to that library and resolve the undefined reference.

If you have only the dll, then (IIRC) with gcc you should be able to link directly to it using the MYEXTLIB config option:
use Inline C => Config => MYEXTLIB => 'C:/Program Files/Common Files/P +roduct/4.1/dptcpiphi.dll'
(I'm assuming that's the fully qualified path name of the dll.)

If that still doesn't resolve the undefined reference then we'll have to come up with something else.
There are other options such as creating the import library, or loading the dll with LoadLibrary - but see how you go with the above suggestions first.

Cheers,
Rob

In reply to Re: Understanding Inline::C to call vendor libraries by syphilis
in thread Understanding Inline::C to call vendor libraries by murrayn

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.