Object declaration issue

i get this very annoying error can any one give hand here thanks

[if (GPS.parse(GPS.lastNMEA()))]

‘GPS’ was not declared in this scope

i attached the whole code , thanks again for taking time to help me

pftxt.txt (18.8 KB)

pf.ino (18.8 KB)

It's not annoying at all. It's true. Where do you think you create the GPS object?

Please go back to the examples that came with the library and try to spot the difference :wink:

Could it be because you don't appear to have an object called "GPS" ?

septillion:
It's not annoying at all. It's true. Where do you think you create the GPS object?

Please go back to the examples that came with the library and try to spot the difference :wink:

the example have error too

The "echo" example that came with my library (1.0.3 freshly installed form the library manager) is just fine :slight_smile: So what did you do with your examples?

septillion:
The "echo" example that came with my library (1.0.3 freshly installed form the library manager) is just fine :slight_smile: So what did you do with your examples?

i compiled the parsing example and error pop up
but i tried the echo example and compare it to my original code and change some things thanks for your help it worked fine