Error compiling for board Mega 2560

Revised accordingly

I'm fairly new at this, but every time I try to compile I get the following errors. It has to do with the libraries I believe, but I'm not exactly sure what I need to do to fix the problem. Any help would be appreciated. Also I know there have been other posts about this similar error, but it can be from many things for different people. So I figured it wouldn't hurt to post my particular error. Thanks everybody.

Library links

Error Messages & Code the Error Refers to

C:\Users\Admin\Documents\Arduino\Jig_Test_Program\Jig_Test_Program.ino: In function 'mixer_test()':

In file included from C:\Users\Admin\Documents\Arduino\libraries\TFTLCD-Library-master\Adafruit_TFTLCD.cpp:19:0:

C:\Users\Admin\Documents\Arduino\libraries\TFTLCD-Library-master\Adafruit_TFTLCD.cpp:803:0: warning: "read8" redefined

#define read8(x) x=read8fn()

#ifdef read8isFunctionalized
  #define read8(x) x=read8fn()
#endif

^

In file included from C:\Users\Admin\Documents\Arduino\libraries\TFTLCD-Library-master\Adafruit_TFTLCD.cpp:19:0:

C:\Users\Admin\Documents\Arduino\libraries\TFTLCD-Library-master\pin_magic.h:183:0: note: this is the location of the previous definition

#define read8 read8inline

^

C:\Users\Admin\Documents\Arduino\libraries\TFTLCD-Library-master\Adafruit_TFTLCD.cpp: In member function 'void Adafruit_TFTLCD::init()':

C:\Users\Admin\Documents\Arduino\libraries\TFTLCD-Library-master\Adafruit_TFTLCD.cpp: In member function 'void Adafruit_TFTLCD::begin(uint16_t)':

C:\Users\Admin\Documents\Arduino\libraries\TFTLCD-Library-master\pin_magic.h:401:21: warning: large integer implicitly truncated to unsigned type [-Woverflow]

hi = (d) >> 8; lo = (d); CD_DATA ; write8(hi); write8(lo); }

#define writeRegister16inline(a, d) { \
  uint8_t hi, lo; \
  hi = (a) >> 8; lo = (a); CD_COMMAND; write8(hi); write8(lo); \
  hi = (d) >> 8; lo = (d); CD_DATA   ; write8(hi); write8(lo); }

^

C:\Users\Admin\Documents\Arduino\libraries\TFTLCD-Library-master\pin_magic.h:187:29: note: in expansion of macro 'writeRegister16inline'

#define writeRegister16 writeRegister16inline

^

C:\Users\Admin\Documents\Arduino\libraries\TFTLCD-Library-master\Adafruit_TFTLCD.cpp:283:5: note: in expansion of macro 'writeRegister16'

writeRegister16(ILI9341_VCOMCONTROL1, 0x2B2B);

writeRegister8(ILI9341_POWERCONTROL1, 0x23);
    writeRegister8(ILI9341_POWERCONTROL2, 0x10);
    writeRegister16(ILI9341_VCOMCONTROL1, 0x2B2B);
    writeRegister8(ILI9341_VCOMCONTROL2, 0xC0);
    writeRegister8(ILI9341_MEMCONTROL, ILI9341_MADCTL_MY | ILI9341_MADCTL_BGR);
    writeRegister8(ILI9341_PIXELFORMAT, 0x55);
    writeRegister16(ILI9341_FRAMECONTROL, 0x001B);

^

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

So I figured it wouldn't hurt to post my particular error.

It would also not hurt to
1)
post your code (please use code tags as descrived in point #7 in How to use this forum - please read
2)
post links to the libraries that you are using
3)
tell us for which board this is

The first warning indicates that you probably have an array of 480 elements and try to access element 481; remember that array elements are indexed 0 .. N-1, so in your case the last element is 479 and not 480.

MicroRF:

C:\Users\Admin\Documents\Arduino\Jig_Test_Program\Jig_Test_Program.ino: In function 'mixer_test()':

C:\Users\Admin\Documents\Arduino\Jig_Test_Program\Jig_Test_Program.ino:231:22: warning: iteration 480 invokes undefined behavior [-Waggressive-loop-optimizations]

y_values[b]=160;

^

It's telling you that your 'b' loop is going off the end of your array 'y_values'.

Thank you! I have fixed a couple of the errors and revised my post accordingly.

Post YOUR code.
2)
There don't seem to be errors in your revised post; I only see warnings.
3)
Please don't modify posts once they got replies; writing a new reply is just asmuch work.
4)
I compiled the graphicstest example; it did compile and I also saw a number of the warnings that you got.

The messages you selected to include did not show any errors, only warnings. That probably means that your 'exit status 1' is coming from the linker because some global variable or function is not defined. If you don't want to show your sketch, at least show all of the messages.

That probably means that your 'exit status 1' is coming from the linker

But linker errors also should show in the output.

sterretje:
But linker errors also should show in the output.

Which leads me to think that not all of the output was shown. That is why I suggested showing all of the messages.

You're right, I apologize. The actual error is gone now that I fixed a couple of the warnings. I was just viewing them all as errors. Also, I tried posting my code, but it exceeded the 9000 character limit. It appears that I can still run it with the warnings. Sorry for this.

You can attach code to a post if it exceeds the 9000 char limit.

Then maybe I did it wrong. I don't know. Forums aren't my thing, I don't typically use forums. So I probably didn't do it right. Either way, the error message is gone and all seems to work even though the warnings are there. Thanks for helping me and putting up with my forum ignorance lol.