View Single Post
hopbeat's Avatar
Posts: 516 | Thanked: 643 times | Joined on Oct 2009 @ Denmark/Poland
#1
Hello,

trying to compile example using:

Code:
gcc -Wall `pkg-config --cflags glib-2.0, liblocation --libs glib-2.0, liblocation` -o gps gps.cpp
I'm getting errors:

Code:
/var/tmp/cc447Dm5.o: In function `main':
gps.cpp:(.text+0x2c): undefined reference to `location_gpsd_control_get_default()'
gps.cpp:(.text+0x38): undefined reference to `location_gps_device_get_type()'
/var/tmp/cc447Dm5.o: In function `start_location(void*)':
gps.cpp:(.text+0x16c): undefined reference to `location_gpsd_control_start(_LocationGPSDControl*)'
/var/tmp/cc447Dm5.o: In function `on_changed(_LocationGPSDevice*, void*)':
gps.cpp:(.text+0x280): undefined reference to `location_gpsd_control_stop(_LocationGPSDControl*)'

maybe I'm tired, but I have no idea how to fix this

I'm using final SDK for Maemo 5, same effect on both armel and x86.
__________________
Hi! I'm a Maemo Greeter!
Witaj na talk.maemo.org!

Useful links for newcomers:
Użyteczne linki:
Nowi użyktownicy mówią cześć | New members say hello , Tu zaczynają nowi użytkownicy | New users start here, Podforum społeczności | Community subforum, Wiki dla początkujących | Beginners' wiki page, Maemo5 101, Często zadawane pytania | Frequently Asked Questions (FAQ), Google

Jeżeli mogę w czymś pomóc, pytaj!
If I can help with anything else, just ask!

Bored? Follow me