Hi Mills,<br><br><div class="gmail_quote">On Fri, Nov 13, 2009 at 8:48 PM, Robert Mills <span dir="ltr"><<a href="mailto:robert.mills09@gmail.com">robert.mills09@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<div><br></div><div>I am trying to build a C++ application that will pull some information from the GPS.</div><div><br></div><div>However, I have an issue that (as I have seen noted before) requires me to do the following to include the location headers</div>
<div><br></div><div><div>extern "C" {</div><div> #include <location/location-gps-device.h></div><div> #include <location/location-gpsd-control.h></div><div>}</div><div><br></div><div>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.</div>
<div><br></div><div>gcc -o main main.cpp `pkg-config --libs dbus-1 --cflags gtk+-2.0` -llocation</div><div><br></div><div>How do I add these arguments when compiling within ESbox?</div>-- <br>Robert Mills<br>
</div>
<br></blockquote><div><br>You can edit Makefile in order to include such additional parameters. The make command is always executed inside Scratchbox toolchain. <br><br>[]'s<br>--Raul<br></div></div>