[Esbox-users] Compiling C++ application that uses Location library

Robert Mills robert.mills09 at gmail.com
Sat Nov 14 01:48:24 EET 2009


Hi,

I am trying to build a C++ application that will pull some information from
the GPS.

However, I have an issue that (as I have seen noted before) requires me to
do the following to include the location headers

extern "C" {
  #include <location/location-gps-device.h>
  #include <location/location-gpsd-control.h>
}

When I try to compile within ESbox, I get an undefined reference error to
functions in the location files I have included above.  If I compile from
the command line using the following, it will compile and run properly on
the device.

gcc -o main main.cpp `pkg-config --libs dbus-1 --cflags gtk+-2.0`
 -llocation

How do I add these arguments when compiling within ESbox?
-- 
Robert Mills
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://garage.maemo.org/pipermail/esbox-users/attachments/20091113/5970b0d6/attachment.htm 


More information about the Esbox-users mailing list