[ gpsdrive ] Linker errors on Ubuntu Hardy

Guenther Meyer d.s.e at sordidmusic.com
Tue Mar 31 23:40:12 AKDT 2009


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...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.gpsdrivers.org/pipermail/gpsdrive/attachments/20090401/cbb9e68b/attachment.bin>


More information about the GPSdrive mailing list