Am Mittwoch 01 April 2009 schrieb Joerg Ostertag (gpsdrive Tettnang/Germany):
> On Mittwoch 01 April 2009, Hamish wrote:
> > > Linking C executable gpsdrive
> > > CMakeFiles/gpsdrive.dir/gpsdrive.o: In function `main':
> > > gpsdrive.c:(.text+0x671d): undefined reference to
> > > `g_thread_init'
> > > collect2: ld returned 1 exit status
> >
> > try adding to src/gpsdrive.c:
> > #include <glib/gthread.h>
> > or
> > #include <glib/gmain.h> // (gmain.h includes gthread.h)
>
> including these didn' change anything here.
the documentation says, that
#include <glib.h>
should be enough...
if this doesn't work, try to include the g_thread_init into a "#ifdef MAEMO"
term, this should fix it for now.
the g_thread_init is needed on maemo for the gps connection, but no threads
are used anywhere else inside gpsdrive so far...
_______________________________________________
GPSdrive mailing list
GPSdrive@...
http://lists.gpsdrivers.org/mailman/listinfo/gpsdrive