Re: undefined reference to `gps_open'

Martin <[email protected]>
Newsgroups gmane.linux.suse.programming
Organization [email protected]
Message-ID <[email protected]>
gibt es gpsd libraries, die dazu gelinkt werden muessen? 

ng martin
On Fri, 2004-11-19 at 18:52, Frederic Wiesenbach wrote:
> Guten Abend,
> 
>   ich versuche ein Programm zu schreiben, daß auf den gpsd-Daemon zugreift. Um 
> den nutzen zu könne, muss ich "gps.h" einbinden, wenn ich das richtig 
> verstanden habe. 
> Ich habe das schon letzte Woche versucht, aber nie hinbekommen, jetzt hab ich 
> den Quellcode von xgpsspeed.c genommen und den Code, der für dei Grafik 
> zuständig war rausgelöscht. Gebracht hat es leider nichts, da ich immernoch 
> den selben Fehler: undefined reference to `gps_open'. "gps_open" liegt in der 
> "gps.h"
> 
> 
> #include <iostream>
> #include <cstdlib>
> #include <unistd.h>
> #include <stdlib.h>
> #include <getopt.h>
> #include <errno.h>
> #include <stdio.h>
> #include <math.h>
> #include "gps.h"
> 
> 
> 
> static struct gps_data_t *gpsdata;
> 
> int main(int argc, char **argv)
> {
> 	int option;
> 	char *colon, *server = NULL;
> 	char *port = DEFAULT_GPSD_PORT;
> 	gpsdata = gps_open(server, DEFAULT_GPSD_PORT);
> 	//gps_set_raw_hook(gpsdata, update_display);
> 	//gps_query(gpsdata, "w+x\n");
> 	gps_close(gpsdata);
> 	return 0;
> }
> 
> Wüsste ich echt gerne das mal hinbekommen, wäre schön, wenn jemand ne Lösung 
> hätte.
> 
> Grüße & schönes Wochenende,
> Freddy


-- 
Um die Liste abzubestellen, schicken Sie eine Mail an:
    [email protected]
Um eine Liste aller verfügbaren Kommandos zu bekommen, schicken
Sie eine Mail an: [email protected]
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.