Errors compiling PiGateway

Started by brc19, August 10, 2017, 09:54:45 AM

brc19

Getting multiple redefine errors.   

Example:  PiGateway_withLCD:80: error: redefinition of 'RFM69_ATC radio'

   RFM69_ATC radio;

sparky

#1
When you have the sketch open in IDE look near the top of the screen, you will see PiGateway on one tab and PiGateway_withLCD on another tab.  When you compile it's compiling both tabs and you just don't have the libraries loaded that the LCD sketch needs.  What I did is copied the sketch I needed and created another file.  Hope this makes sense.

 

brc19

That did it.  :)

Thanks for the help!

sparky


HeneryH

Quote from: sparky on August 10, 2017, 10:13:55 AM
When you have the sketch open in IDE look near the top of the screen, you will see PiGateway on one tab and PiGateway_withLCD on another tab.  When you compile it's compiling both tabs and you just don't have the libraries loaded that the LCD sketch needs.  What I did is copied the sketch I needed and created another file.  Hope this makes sense.


I don't get it.  Sorry.  I eventually want both the one with and without the LCD because now I don't have an LCD  but I have one on order.  I'm new to this so could you please elaborate on your solution?