Sketch compiling perfectly on one computer - but not on another

Hi,

I have a sketch that compiles perfectly on one computer, and not on the other. Both computers have the identical required libraries installed. I have completely uninstalled, and reinstalled the IDE many times, reinstalled the libraries many times, and restarted my computer many times, but the same error occurs on one of the computers and not the other!

If you know of any reason why this is happening please help :slight_smile:

PS: One thing I couldn't seem to find is the Arduino 1.0.5 (NOT the r2 version!). I think that that might be a possible reason seeing as that is the only difference between the two computers; the one that works is running the Arduino 1.0.5 and the one that doesn't is running the Arduino 1.0.5**-r2**. I can't find the download link for the NON-r2 version. If you know where I can find the executable for that exact version, I would be very grateful.

And the error is what exactly ?

It's not recognizing a function from one of the libraries. It's there, and it works perfectly on the other computer that has the exact same libraries installed.

"'class SerialGSM' has no member named 'registerSMSCallback'"

is the precise error I get, but it is definitely there...

Are you sure that the two SerialGSM libraries are the same and from the same source ?
I have just found one at SerialGSM/SerialGSM.cpp at master ยท meirm/SerialGSM ยท GitHub that does not have a registerSMSCallback function, for instance.

If you have not done so already try copying the library from the working computer to the one that errors.

Yes, they are definitely the same library. I am sure of it. I even opened the source code and checked, and that class does exist.

I did have an earlier version of the library, that did not have this function, but for whatever reason my Arduino IDE is not recognizing the updated version. No matter how many times I uninstall, and reinstall all the libraries, and the Arduino IDE.

Can you please post the library files here or give a link to them.

I also had this problem. First, uninstalling the IDE does not remove the files under MyDocuments/Arduino/libraries. If your problem was here, removing and reloading the IDE would not fix your problem. I could not find the library file that was causing my problem, but I did fix it.

  1. Unintall the IDE.
  2. Rename or delete the Arduino folder under MyDocuments.
  3. Install the IDE.
  4. Reload the necessary libraries.
    Magically my code compiled successfully.