What are the exact #include lines in your source file? Are you sure you link to the correct header files for location_gpsd*?
/* Includes */ #include <location/location-gps-device.h> #include <location/location-gpsd-control.h> #include <hildon/hildon-program.h> #include <gtk/gtkmain.h> #include <gtk/gtkbutton.h> #include <libosso.h> #include <string.h> #include <stdlib.h> #include "localisation.h"
src/main.c:63: error: expected ')' before '*' token src/main.c:69: error: expected ')' before '*' token src/main.c:82: error: expected ')' before '*' token src/main.c: In function 'start_location': src/main.c:90: error: 'LocationGPSDControl' undeclared (first use in this function) src/main.c:90: error: (Each undeclared identifier is reported only once src/main.c:90: error: for each function it appears in.) src/main.c:90: error: expected expression before ')' token src/main.c: In function 'main': src/main.c:188: error: 'LocationGPSDControl' undeclared (first use in this function) src/main.c:188: error: 'control' undeclared (first use in this function) src/main.c:189: error: 'LocationGPSDevice' undeclared (first use in this function) src/main.c:189: error: 'device' undeclared (first use in this function) src/main.c:197: error: 'LOCATION_TYPE_GPS_DEVICE' undeclared (first use in this function) src/main.c:200: error: 'LOCATION_METHOD_USER_SELECTED' undeclared (first use in this function) src/main.c:201: error: 'LOCATION_INTERVAL_DEFAULT' undeclared (first use in this function) src/main.c:204: error: 'on_error' undeclared (first use in this function) src/main.c:205: error: 'on_changed' undeclared (first use in this function) src/main.c:206: error: 'on_stop' undeclared (first use in this function) make[2]: Leaving directory `/home/maemo/workspace/helloworld-withDebianSupport' make[1]: Leaving directory `/home/maemo/workspace/helloworld-withDebianSupport' make[2]: *** [main.o] Error 1 make[2]: Target `all-am' not remade because of errors. make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 *** exited with code 2