Re: Bullseye: Linker Can't Find libgps Library

2020-07-13 Thread Charles Curley
On Mon, 13 Jul 2020 20:28:59 +0200 Sven Joachim wrote: > Not really, the reason is that in Bullseye gcc now passes the > --as-needed option to the linker to reduce unnecessary linking of > libraries (and dependencies in the Debian package system). Nice. Thanks for the clarification. -- Does an

Re: Bullseye: Linker Can't Find libgps Library

2020-07-13 Thread Sven Joachim
On 2020-07-12 15:44 -0600, Charles Curley wrote: > On Sun, 12 Jul 2020 22:04:54 +0200 > Sven Joachim wrote: > >> I am rather surprised that it does, for I have learned that you always >> need to put libraries to link with at the end of the gcc commandline, >> i.e. >> >> gcc -Wall -ggdb -o gpsclie

Re: Bullseye: Linker Can't Find libgps Library

2020-07-12 Thread Charles Curley
On Sun, 12 Jul 2020 22:04:54 +0200 Sven Joachim wrote: > I am rather surprised that it does, for I have learned that you always > need to put libraries to link with at the end of the gcc commandline, > i.e. > > gcc -Wall -ggdb -o gpsclient gpsclient.c -lm -lgps > > should work. Bingo. charle

Re: Bullseye: Linker Can't Find libgps Library

2020-07-12 Thread Sven Joachim
On 2020-07-12 13:16 -0600, Charles Curley wrote: > I am trying to compile a gpsd client on a i686 bullseye machine. It > appears the compiler can find the include file for libgps, gps.h. > However, the linker cannot find the library. > > gcc -Wall -ggdb -lm -lgps -o gpsclient gpsclient.c > gpsclie

Bullseye: Linker Can't Find libgps Library

2020-07-12 Thread Charles Curley
I am trying to compile a gpsd client on a i686 bullseye machine. It appears the compiler can find the include file for libgps, gps.h. However, the linker cannot find the library. gcc -Wall -ggdb -lm -lgps -o gpsclient gpsclient.c gpsclient.c:64:2: warning: #warning Setting up for API version 9.0 [