Compile Errors with Latest Version of Arduino- Need Help PLEASE!

Ok, I'm picking up on a sketch I was working on about 3 months ago where I was reading data from a chip via its SMBus protocol. The sketch I was using was working fine and compiling fine 3-4 months ago using a older version of Arduino.

I recently updated to the latest version of Arduino 1.6.4 and deleted the older versions from my computer to keep from loading up the old Arduino versions I had installed in my My Documents folder.

Now when I try to compile the code that used to work I get numerous errors. I've tried many different things, and created libraries and installed them, and what ever I do based on what I'm reading online I can never get the code to compile.

Here is a link to the main .ino + .cpp + .h file I'm trying to compile that used to work just fine: https://gist.github.com/SolarDude/506786137d1c696d81db

When I try to compile this code using Arduino 1.6.3 the compile error message just keeps scrolling and scrolling and never stops. Before it would say that there was no refrence to setup and loop.

I've tried lots of stuff, I figured I should ask for some outside help from somebody smarter than I am about this.

Can anybody get this to compile with errors? I'm sure its something simple but its eluding me at the moment.

Any and all help is greatly appreciated :confused: !

  1. Someone names the .h file .cpp and the .cpp file .h
  2. In the example sketch someone put an extra ';' after "setup()" and "loop()"

After correcting those two errors I was able to compile the example sketch.

Yep, your 100% correct ;D

The .h and .cpp mixup is what was causing the problem from the beginning I'm pretty sure. I had saved this code in a backup folder to keep myself from messing with it but I had copied the .h and .cpp incorrectly it seems.

I knew it was something simple, just didn't know what exactly.

I know I added the ; to the loop and setup in my attempt at trying just about everything to fix it so I think that just got save as I was testing different stuff.

John your very kind for taking time to help me with this. Now I can get back to work and figure out where I get stummped next :grin: Thank God for You guys on the forums. It's really what makes Arduino so powerful!