Skip to content

Instantly share code, notes, and snippets.

View JacekRuzyczka's full-sized avatar

Jacek Rużyczka JacekRuzyczka

  • Sandkrug, Lower Saxony, Germany
View GitHub Profile
@ncoder-1
ncoder-1 / gpsd-example.cpp
Last active July 1, 2022 09:07
example C++17 gpsd program using libgpsmm
// Example C++17 gpsd program using libgpsmm
// Has no actual purpose other than output some of libgpsmm struct variables of your choosing.
// reference declarations: https://fossies.org/dox/gpsd-3.22/index.html
//
// compiles without warning as follows:
// g++ -std=c++17 -Wall -pedantic -pthread $(pkg-config --cflags --libs libgps) gpsd-example.cpp -o gpsd-example
// clang++ -std=c++17 -Wall -pedantic -pthread $(pkg-config --cflags --libs libgps) gpsd-example.cpp -o gpsd-example
// Free for the taking.
// Version 1.84