Code Monkey home page Code Monkey logo

gethla's People

Contributors

a-v-s avatar

Stargazers

 avatar

gethla's Issues

Makefile did not work on my system

build with make fails instead I had to go cc gethla.c -lusb-1.0

$ uname -a
Linux nuc2 5.10.0-28-amd64 #1 SMP Debian 5.10.209-2 (2024-01-31) x86_64 GNU/Linux
$ make
cc -I/usr/include/libusb-1.0 -lusb-1.0 -ogethla gethla.c
/usr/bin/ld: /tmp/cciXESUF.o: in function `print_device':
gethla.c:(.text+0x2c): undefined reference to `libusb_get_device_descriptor'
/usr/bin/ld: gethla.c:(.text+0x9c): undefined reference to `libusb_open'
/usr/bin/ld: gethla.c:(.text+0xd4): undefined reference to `libusb_get_string_descriptor_ascii'
/usr/bin/ld: gethla.c:(.text+0x15c): undefined reference to `libusb_open'
/usr/bin/ld: gethla.c:(.text+0x190): undefined reference to `libusb_get_string_descriptor_ascii'
/usr/bin/ld: gethla.c:(.text+0x201): undefined reference to `libusb_close'
/usr/bin/ld: /tmp/cciXESUF.o: in function `main':
gethla.c:(.text+0x221): undefined reference to `libusb_init'
/usr/bin/ld: gethla.c:(.text+0x243): undefined reference to `libusb_get_device_list'
/usr/bin/ld: gethla.c:(.text+0x2a5): undefined reference to `libusb_free_device_list'
/usr/bin/ld: gethla.c:(.text+0x2af): undefined reference to `libusb_exit'
collect2: error: ld returned 1 exit status
make: *** [Makefile:5: gethla] Error 1

while cc gethla.c -lusb-1.0 produces happy working a.out!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.