TinyGPS static_test example won't compile.

Maybe this isn't the correct place to ask the question, but I will try anyway...
I am trying to compile the Static_test that comes with the TinyGPS library that I just downloaded. I have an Arduino Uno R2 that I am attempting to compile this sketch from a Windows 7 PC.
When I click compile I get the following error message.

In file included from static_test.cpp:1:
C:\Users\marks\Desktop\arduino-1.0\libraries\TinyGPS/TinyGPS.h:25:22: error: WProgram.h: No such file or directory
In file included from static_test.cpp:1:
C:\Users\marks\Desktop\arduino-1.0\libraries\TinyGPS/TinyGPS.h:81: error: 'byte' has not been declared
C:\Users\marks\Desktop\arduino-1.0\libraries\TinyGPS/TinyGPS.h:81: error: 'byte' has not been declared
C:\Users\marks\Desktop\arduino-1.0\libraries\TinyGPS/TinyGPS.h:82: error: 'byte' has not been declared
C:\Users\marks\Desktop\arduino-1.0\libraries\TinyGPS/TinyGPS.h:82: error: 'byte' has not been declared
C:\Users\marks\Desktop\arduino-1.0\libraries\TinyGPS/TinyGPS.h:82: error: 'byte' has not been declared
C:\Users\marks\Desktop\arduino-1.0\libraries\TinyGPS/TinyGPS.h:82: error: 'byte' has not been declared
C:\Users\marks\Desktop\arduino-1.0\libraries\TinyGPS/TinyGPS.h:130: error: 'byte' does not name a type
C:\Users\marks\Desktop\arduino-1.0\libraries\TinyGPS/TinyGPS.h:133: error: 'byte' does not name a type
C:\Users\marks\Desktop\arduino-1.0\libraries\TinyGPS/TinyGPS.h:134: error: 'byte' does not name a type
C:\Users\marks\Desktop\arduino-1.0\libraries\TinyGPS/TinyGPS.h:135: error: 'byte' does not name a type
C:\Users\marks\Desktop\arduino-1.0\libraries\TinyGPS/TinyGPS.h: In member function 'void TinyGPS::get_position(long int*, long int*, long unsigned int*)':
C:\Users\marks\Desktop\arduino-1.0\libraries\TinyGPS/TinyGPS.h:48: error: 'millis' was not declared in this scope
C:\Users\marks\Desktop\arduino-1.0\libraries\TinyGPS/TinyGPS.h: In member function 'void TinyGPS::get_datetime(long unsigned int*, long unsigned int*, long unsigned int*)':

C:\Users\marks\Desktop\arduino-1.0\libraries\TinyGPS/TinyGPS.h:57: error: 'millis' was not declared in this scope
static_test.cpp: In function 'void gpsdump(TinyGPS&)':
static_test.pde:-1: error: no matching function for call to 'TinyGPS::crack_datetime(int*, byte*, byte*, byte*, byte*, byte*, byte*, long unsigned int*)'
C:\Users\marks\Desktop\arduino-1.0\libraries\TinyGPS/TinyGPS.h:82: note: candidates are: void TinyGPS::crack_datetime(int*, int*, int*, int*, int*, int*, int*, long unsigned int*)

I downloaded a WProgram.h file but I still have the similar error messages. What should I be looking for to solve this issue? Different version of tinyGPS? Something else?

Any help is greatly appreciated.

Mark

Mark,
The library is not compatible with arduino 1.0
Download arduino 0022 and your code will compile.

You could try putting the Arduino 1.0 style "Arduino.h" in place of the pre-1.0 style "WProgram.h" (inherited from Wiring) to see if that fixes the problem.

Here is a tutorial

I only suggest those with programming experience to make modifications. Libraries are best modified by original authors to avoid a hundred versions of mods. :slight_smile:

Thanks everyone. Here is what I did and it compiles and runs now. (I will be verbose in case this can help someone else.)

I opened TinyGPS.h header file and changed the include file from #include "WProgram.h" to #include "Arduino.h", Saved at closed the file.

Similarly, I opened TinyGPS.cpp file and changed the include file from #include "WProgram.h" to #include "Arduino.h", Saved at closed the file.

I was then able to compile the sketch and upload to the Arduino successfully.The serial monitor spit out the properly formated info.

Thanks again!

The NewSoftSerial library was incorporated into the 1.0 release of the IDE [...] Change your "#include of <NewSoftSerial.h>" to "#include <SoftwareSerial.h>."

...as well as any classes named "NewSoftSerial" to "SoftwareSerial". 8)

Answer is in this post:
https://www.adafruit.com/forums/viewtopic.php?f=31&p=131267#p131273