in reply to Inline::C with MSVC and linking external library

Is your library really called: -usbi2cio.lib?


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^2: Inline::C with MSVC and linking external library
by rem45acp (Novice) on Aug 30, 2013 at 14:50 UTC
    Yes, the file name is usbi2cio.lib. It is a driver for an I2C board. And according to the Inline::C documentation, the dash goes in front?

      No. That parameter is basically the command line switch for the compiler to link the named library, -l and then the library name:

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

      So, in your case, I would try

      use Inline C => Config => LIBS => '-lusbi2cio';
        Ahh, thank you for your help. That works! I also discovered that doing
        use Incline C => Config => LIBS => 'usbi2cio.lib';
        works just as well as what you provided.