exit status 1 Error compiling for board Arduino/Genuino Mega or Mega 2560.

Hi. I have been making this big project and when I went to compile it gives me this message:

Arduino: 1.8.9 (Windows Store 1.8.21.0) (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

In file included from F:\Water_Float_thing\Water_Float_thing.ino:1:0:

C:\Users\Splat\Documents\Arduino\libraries\Adafruit_SSD1306/Adafruit_SSD1306.h:41:26: fatal error: Adafruit_GFX.h: No such file or directory

compilation terminated.

exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.

I'm not too sure what's making this error, it's probably something to do with a library or something.

Any help would be nice! Thanks.

Adafruit_GFX.h: No such file or directory

Have you got this library installed ? It is available from the IDE Library Manager

I've never installed it

I just recompiled it and it gave me this:

Arduino: 1.8.9 (Windows Store 1.8.21.0) (Windows 10), Board: “Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)”

In function ‘global constructors keyed to 65535_0_CString.cpp.o’:

lto1.exe: internal compiler error: Segmentation fault

Please submit a full bug report,

with preprocessed source if appropriate.

See http://gcc.gnu.org/bugs.html for instructions.

lto-wrapper.exe: fatal error: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-gcc returned 1 exit status

compilation terminated.

c:/program files/windowsapps/arduinollc.arduinoide_1.8.21.0_x86__mdqgnx93n4wtt/hardware/tools/avr/bin/…/lib/gcc/avr/5.4.0/…/…/…/…/avr/bin/ld.exe: error: lto-wrapper failed

collect2.exe: error: ld returned 1 exit status

exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.

This report would have more information with
“Show verbose output during compilation”
option enabled in File → Preferences.