in reply to Inlin::C in Win32

This is propably not what you want - as I'm not really good with C, I usually wrap the functions using Win32::API, because that only leaves the parameter wrangling. As it happens, I have a wrapper for the Fmod DLL (or is it BASS.dll?). But this doesn't help you with your Inline::C linkage problem.

Searching for "library" in the Inline::C Cookbook, I find the following snippet under Exposing Shared Libraries, which could be the magic you're looking for:

use Inline C => Config => LIBS => '-lghttp';

So maybe all you need is to use:

use Inline C => Config => LIBS => '-lfmodex_vc';

to load fmodex_vc.lib?

Replies are listed 'Best First'.
Re^2: Inlin::C in Win32
by xiaoyafeng (Deacon) on Nov 06, 2007 at 08:55 UTC
    Unfortunately, it doesn't work yet after I change:
    LIBS => '-lfmodex'; to LIBS => '-lfmodex_vc';
    I doubt I have to inform Inline where library is explicitly like:
    LD => ....
    But I'm not sure.

    I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction