Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6778219
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:14:28+00:00 2026-05-26T16:14:28+00:00

I am trying to build a program that uses libusb and I get a

  • 0

I am trying to build a program that uses libusb and I get a lot of errors such as

i2cbrdg.c:84: error: implicit declaration of function ‘usb_init’
i2cbrdg.c:88: error: implicit declaration of function ‘usb_find_busses’
i2cbrdg.c:89: error: implicit declaration of function ‘usb_find_devices’
i2cbrdg.c:90: error: implicit declaration of function ‘usb_get_busses’

So I am trying to install libusb, but am having troubles doing so. I have installed libusb-dev and that appears to be okay. When I do dpkg -L libusb-dev, I get a list of directories. However, when I dpkg -L libusb, I get

Package `libusb' is not installed.
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.

I have done sudo apt-get install libusb-1.0 and that went okay. When I try to do it again I get the message

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libusb-1.0-0' for regex 'libusb-1.0'
Note, selecting 'libusb-1.0-0-dev' for regex 'libusb-1.0'
libusb-1.0-0-dev is already the newest version.
libusb-1.0-0 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

I have also tried installing it with yum and it still says that it is not installed. I have downloaded the tar for the package and ran make on that, which also seemed to be okay (no explicit error messages). I don’t really know what to try next. The dpkg message just keeps telling me its not installed. Can anyone give me a direction to go in? Any help is appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T16:14:29+00:00Added an answer on May 26, 2026 at 4:14 pm

    The libraries libusb 0.1 and libusb 1.0 are very different. You should decide now which one you want to use. I recommend libusb 1.0. The last time I checked, the libusb-dev and libusb packages install libusb 0.1, while the libusb-1.0-0-dev package should install libusb 1.0, at least in Ubuntu.

    After you install the desired library, you will need to #include the header file in your C file and also add the right linker option.

    For libusb 1.0, the include statement would be

    #include <libusb-1.0/libusb.h>
    

    and the linker option is

    -lusb-1.0
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to build a program that will get all the system keyEvents
I'm trying to build a small program that hosts vst effects and I would
I am trying to build a program that, once the button was click, every
Helllo! I'm trying to build a program that calculates the best score from a
I'm trying to build a really basic program that will alternate between two pictures
I am trying to setup a program that uses Java and OpenCL. I am
I am trying to write a program that uses a C API. This API
i m trying to build an invoice program that holds data in an Access
I am trying to build a program that parses and lists the content of
I am trying to build a program for a school assignment that generates transitive

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.