MODGPS isn't working.

27 Oct 2011

Hi,

I am trying to use MODGPS for the first time.

I have read the cookbook page, and it seems straight forward,...BUT...

when I try to do the simplest thing. (Just include the library and declare a GPS object in my main)

I get a single error.

"Undefined symbol main (referred from rtentry2.o)." in file "/"

That's double dutch to me I'm afraid.

could anyone help please ?

thanks

28 Oct 2011

David,

I think this cryptic clue is telling you that you have more than one instance of main. Do you have the examples in the same directory you are compiling??

Dave.

28 Oct 2011

thanks for the pointer, it turns out it was me being slightly daft,

I didn't have a

main{ }

in my main.cpp

(as I'd been trying the example, and literally pasting in what it said from the cookbook. (which didn't include a main{} in the main.cpp)

Oops.

28 Oct 2011

David,

I guess the real pointer was " in file "/"", the compiler could not find main{}. The good thing, is that you found it!

Dave.

20 Feb 2012

I figured my problem out... In the first line of the demo code you see:

#define COMPILE_EXAMPLE_CODE_MODGPS

This should be replaced with:

#define COMPILE_EXAMPLE1_CODE_MODGPS

Otherwise you will get a confusing error about there not being any main() function.