Results 1 to 3 of 3

Thread: libusb 1.0 or 0.1: Which one is getting linked

  1. #1
    Join Date
    Feb 2011
    Beans
    42

    libusb 1.0 or 0.1: Which one is getting linked

    Hi,

    When I use -lusb option in my Makefile, which shared library is being used libusb 1.0 or 0.1? Below is a list from my linux box:

    Code:
    $ dpkg -l | grep libusb
    rc  libusb++-0.1-4c2                     2:0.1.12-14ubuntu0.2                            userspace C++ USB programming library
    ii  libusb-0.1-4                         2:0.1.12-14ubuntu0.2                            userspace USB programming library
    ii  libusb-1.0-0                         2:1.0.6-1                                       userspace USB programming library
    ii  libusb-1.0-0-dev                     2:1.0.6-1                                       userspace USB programming library developmen
    ii  libusb-dev                           2:0.1.12-14ubuntu0.2                            userspace USB programming library developmen
    ii  libusbmuxd1                          1.0.2-1ubuntu2                                  USB multiplexor daemon for iPhone and iPod T
    Thanks.
    Last edited by ufuser01; February 25th, 2012 at 11:17 PM.

  2. #2
    Join Date
    Nov 2005
    Location
    Bordeaux, France
    Beans
    11,292
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: libusb 1.0 or 0.1: Which one is getting linked

    Run ldd on the compiled program to find out.
    「明後日の夕方には帰ってるからね。」


  3. #3
    Join Date
    Apr 2009
    Location
    Germany
    Beans
    2,134
    Distro
    Ubuntu Development Release

    Re: libusb 1.0 or 0.1: Which one is getting linked

    the 0.1 one

    the 1.0 one is called libusb-1.0 -> -lusb-1.0

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •