Re: порядок аргументов gc c

sergio <[email protected]>
Newsgroups gmane.linux.debian.user.russian
Message-ID <[email protected]>
% gcc -lusb usbtest.c
/usr/bin/ld: /tmp/cckKmWxL.o: in function `main':
usbtest.c:(.text+0x5): undefined reference to `usb_init'
collect2: error: ld returned 1 exit status
zsh: exit 1     gcc -lusb usbtest.c
% gcc usbtest.c -lusb
%

Забавно, но это не у одного меня так:

https://askubuntu.com/questions/1190940/compiling-a-libusb-0-1-program-fails-with-undefined-reference-errors
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.