Hello
Has anyone tried to compile the test_gpsmm.cpp script that is included in the package (gpsd-3.9)?
I tried it and ran into problems. This is the command I used
g++ test_gpsmm.cpp libgpsmm.cpp
It didn't compile and I got the following errors
/tmp/ccJXzj5b.o: In function `libgps_dump_state(gps_data_t*)':
test_gpsmm.cpp:(.text+0x1c): undefined reference to `gps_maskdump'
/tmp/ccM4smxK.o: In function `gpsmm::gps_inner_open(char const*, char const*)':
libgpsmm.cpp:(.text+0x23): undefined reference to `gps_open'
/tmp/ccM4smxK.o: In function `gpsmm::stream(int)':
libgpsmm.cpp:(.text+0x9e): undefined reference to `gps_stream'
/tmp/ccM4smxK.o: In function `gpsmm::send(char const*)':
libgpsmm.cpp:(.text+0xe0): undefined reference to `gps_send'
/tmp/ccM4smxK.o: In function `gpsmm::read()':
libgpsmm.cpp:(.text+0x117): undefined reference to `gps_read'
/tmp/ccM4smxK.o: In function `gpsmm::waiting(int)':
libgpsmm.cpp:(.text+0x154): undefined reference to `gps_waiting'
/tmp/ccM4smxK.o: In function `gpsmm::data()':
libgpsmm.cpp:(.text+0x16f): undefined reference to `gps_data'
/tmp/ccM4smxK.o: In function `gpsmm::clear_fix()':
libgpsmm.cpp:(.text+0x18e): undefined reference to `gps_clear_fix'
/tmp/ccM4smxK.o: In function `gpsmm::enable_debug(int, _IO_FILE*)':
libgpsmm.cpp:(.text+0x1a8): undefined reference to `gps_enable_debug'
/tmp/ccM4smxK.o: In function `gpsmm::~gpsmm()':
libgpsmm.cpp:(.text+0x1d6): undefined reference to `gps_close'
collect2: error: ld returned 1 exit status
gps_open, gps_stream etc are all functions in gps.h which is mentioned in libgpsmm.h