Sdfat does not name a type?

I searched and searched and no answer.

When i upload my back up sketch it works flawlessly
When i use my code i added some stuff too i get

SdFat does not name a type

I have it as SdFat SD; under my includes.

What gets me is it works in one sketch but not the other....

edit::

backup is the one working and second try is the one thats the same but wont work

backup.ino (27.6 KB)

second_try.ino (50.7 KB)

What gets me is it works in one sketch but not the other....

What gets me is that you have not posted either of them

posted both in the original question

back up is the working one
and second try is the one thats the same but wont work

Wow. 39 #includes, many of them duplicates of the form

#include <SdFat.h>
#include "SdFat.h"

Why ?

Dont worry about stuff that is not part of this. Im not a pro just trying to get this going.

And with only one it still doesent work.
Go read my original question again

Today at 08:55:32
Dont worry about stuff that is not part of this.

If you knew what was "part of this" you would not be asking the question

The working code has 13 #includes
The non working code has 39 #includes

When you encounter an error you'll see a button on the right side of the orange bar "Copy error messages". Click that button. Paste the error in a message here USING CODE TAGS (</> button on the toolbar).

UKHeliBob:
If you knew what was "part of this" you would not be asking the question

The working code has 13 #includes
The non working code has 39 #includes

If you read them you might notice its for my display. You will also notice another 1k lines of code :0 shocker right?

pert:
When you encounter an error you'll see a button on the right side of the orange bar "Copy error messages". Click that button. Paste the error in a message here USING CODE TAGS (</> button on the toolbar).

Tells me the line its in and that its using the sd lib from the arduino folder and not the program folder that i run it from. I tried deleting both and reinstalling one at a time and one and not the other still get

"Sd.fat does not name a type"
Tried all kinds of ways

THE ONLY DIFFERENCE BETWEEN MY TWO CODES IS THE ADDED DISPLAY.
Please guys focus more on a solution and less on being snarky ok?

Sorry

 Sd.Fat does not name a type

In much less than the time it took you to type that useless reply you could have just done what I asked you. I guess you don't want my help. Good luck!

jokefox:
Sorry

 Sd.Fat does not name a type

Sorry, but I won't believe that is the error message unless you copy and paste the whole message here.

If you ARE seeing "Sd.Fat does not name a type", the the compile is COMPLETELY correct, and you are just a dick. Get over yourself.

Nice attitude.

When i get home from work ill post the error code. Its really odd how im getting one. ..

(deleted)

second_try:45: error: 'SdFat' does not name a type
SdFat SD;
^
Multiple libraries were found for "SD.h"
Used: /home/pi/Arduino/libraries/SD
Not used: /home/pi/Desktop/arduino-1.8.5/arduino-1.8.5/libraries/SD
exit status 1
'SdFat' does not name a type