Go Down

Topic: simple message lib not found (Read 826 times) previous topic - next topic

Kostantinos

Hi all, I have installed the sms lib to the /arduino/library/ folder but is not working even I can see it on the menu>import lib.
The message error I get the WProgram.h doesn't exist, I searched for fixing it and came by this http://nootropicdesign.com/forum/viewtopic.php?t=2434

So I try to tweak the code but no luck, I am not sure though if the problem comes from this now, has anyone managed to fix it yet, or any updated sms folder to download ?

Thanks
K.

Quick5pnt0

After changing WPrograms.h to Arduino.h what errors do you get?

Kostantinos

Hi, now I have changed to:

#if defined(ARDUINO) && ARDUINO >= 100
  #include "Arduino.h"
#else
  #include "WProgram.h"
  #include "SimpleMessageSystem.h"
#endif

And I get these -> core.a(main.cpp.o): In function `main':
/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/main.cpp:11: undefined reference to `setup'
/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino/main.cpp:14: undefined reference to `loop'

I am not sure that this avoids to work though, as seems that SuperCollider writes and reads to the platform, I am not 100% sure, I haven't yet managed to control any in the SC, but this might be other story. Nevertheless I would like to make the arduino side clean and no errors so I won't have any doubts then.
Thanks
K.

PaulS

Quote
Hi, now I have changed to:

#if defined(ARDUINO) && ARDUINO >= 100
  #include "Arduino.h"
#else
  #include "WProgram.h"
  #include "SimpleMessageSystem.h"
#endif

Why are you including SimpleMessageSystem.h only for pre-1.0 versions of the IDE?

Quote
as seems that SuperCollider writes and reads to the platform

Writes to what platform? What has SuperCollider got to do with anything?

Where is ALL of your source code?

Kostantinos

Quote
Why are you including SimpleMessageSystem.h only for pre-1.0 versions of the IDE?

Would you bother to explain how this should look like ?
Quote
Where is ALL of your source code?

I am using the "SimpleMessageSystem Example 1"

PaulS

Quote
Would you bother to explain how this should look like ?

Well, I think it's pretty obvious what this means:
Code: [Select]
#if defined(ARDUINO) && ARDUINO >= 100

I think it's pretty obvious what this means:
Code: [Select]
#else

I don't think it takes much imagination to determine under what circumstances the SimpleMessageSystem header file gets included and under what circumstances it does not.

If you agree that it is being included only under certain circumstances, and that those are not the correct circumstances, then you should feel free to move the include statement.

Quote
I am using the "SimpleMessageSystem Example 1"

That example is included with a library that you have not explained where you got it. That leaves you as the only one that knows what your code looks like.

Denbo

Isn't SimpleMessageSystem really old and was replaced by http://playground.arduino.cc//Code/CmdMessenger

Just askin.

Kostantinos

I am using sms because of SuperCollider. SC has some extensions called quarks, which enhance particular tasks, i.e Arduino and SCPyduino are  some of them in order to make SC communicate with the board. However I am not sure if the one you mentioned supposes to be the upgraded or better use for the same library and communication with SC.  If this consists of a more integrated way for such communication I would be very interested to use.

Thanks
K.

Go Up