Arduino Forum

Development => Other Software Development => Topic started by: waledmm on Mar 05, 2012, 06:28 pm

Title: i need help in arduino with eclipse
Post by: waledmm on Mar 05, 2012, 06:28 pm
#include "uno.h"
#include <MsTimer2.h>



void flash() {
  static boolean output = HIGH;

  digitalWrite(13, output);
  output = !output;
}

void setup() {
  pinMode(13, OUTPUT);

  MsTimer2::set(50000, flash); // 500ms period
  MsTimer2::start();
}

void loop()
{

}


this is the error
C:\Users\Diablo\workspace\uno\Release/../uno.cpp:17: undefined reference to `MsTimer2::set(unsigned long, void (*)())'
C:\Users\Diablo\workspace\uno\Release/../uno.cpp:18: undefined reference to `MsTimer2::start()'
Title: Re: i need help in arduino with eclipse
Post by: Jantje on Mar 06, 2012, 07:03 pm
Hi
you  probably havn't linked in the arduino library.
Have you considered to use the arduino eclipse plugin? eclipse.baeyens.it (http://eclipse.baeyens.it)
Best regards
Jantje