[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ✘https://gpsd.io/gpsd-client-example-code.html
From: |
Andreas B |
Subject: |
Re: ✘https://gpsd.io/gpsd-client-example-code.html |
Date: |
Tue, 9 Mar 2021 10:53:28 +0100 |
Gary,
I do _not_ know alot about C, so forgive my ignorance.
When I try to compile I get this:
----
$ gcc example_gpsd_client.c
/usr/bin/ld: /tmp/ccUgbOEX.o: in function `main':
example_gpsd_client.c:(.text+0x31): undefined reference to `gps_open'
/usr/bin/ld: example_gpsd_client.c:(.text+0x64): undefined reference
to `gps_stream'
/usr/bin/ld: example_gpsd_client.c:(.text+0x82): undefined reference
to `gps_read'
/usr/bin/ld: example_gpsd_client.c:(.text+0x1d2): undefined reference
to `gps_waiting'
/usr/bin/ld: example_gpsd_client.c:(.text+0x1f3): undefined reference
to `gps_stream'
/usr/bin/ld: example_gpsd_client.c:(.text+0x202): undefined reference
to `gps_close'
collect2: error: ld returned 1 exit status
----
Best,
Andreas
On Tue, Mar 9, 2021 at 2:18 AM Gary E. Miller <gem@rellim.com> wrote:
>
> Yo All!
>
> A first cut:
>
> https://gpsd.io/gpsd-client-example-code.html
>
> I find it a good format to comment on commonly asked questions, but the
> format needs to improve.
>
> Comments? Suggestions?
>
> RGDS
> GARY
> ---------------------------------------------------------------------------
> Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
> gem@rellim.com Tel:+1 541 382 8588
>
> Veritas liberabit vos. -- Quid est veritas?
> "If you can't measure it, you can't improve it." - Lord Kelvin