"error: ‘size_t’ does not name a type"

Uppdated to 1.0.1 today, my code worked before instalation of 1.0.1, with 1.0.0.
Swithced back to 1.0.0 still same problem.

Error list:

In file included from c:/users/jonkos/desktop/robot/arduino-1.0/hardware/tools/avr/lib/gcc/../../avr/include/stdlib.h:47,
                 from C:\Users\jonkos\Desktop\Robot\arduino-1.0\hardware\arduino\cores\arduino/arduino.h:4,
                 from sketch_jul25a.cpp:3:
c:\users\jonkos\desktop\robot\arduino-1.0\hardware\tools\avr\bin\../lib/gcc/avr/4.3.2/include/stddef.h:214: error: two or more data types in declaration of 'size_t'
In file included from C:\Users\jonkos\Desktop\Robot\arduino-1.0\hardware\arduino\cores\arduino/arduino.h:4,
                 from sketch_jul25a.cpp:3:
c:/users/jonkos/desktop/robot/arduino-1.0/hardware/tools/avr/lib/gcc/../../avr/include/stdlib.h:143: error: 'size_t' has not been declared
c:/users/jonkos/desktop/robot/arduino-1.0/hardware/tools/avr/lib/gcc/../../avr/include/stdlib.h:144: error: 'size_t' has not been declared
...
...deleting some lines, to many chars.
...
...

c:/users/jonkos/desktop/robot/arduino-1.0/hardware/tools/avr/lib/gcc/../../avr/include/string.h:143: error: 'size_t' does not name a type
In file included from C:\Users\jonkos\Desktop\Robot\arduino-1.0\hardware\arduino\cores\arduino/arduino.h:8,
                 from sketch_jul25a.cpp:3:
c:/users/jonkos/desktop/robot/arduino-1.0/hardware/tools/avr/lib/gcc/../../avr/include/avr/pgmspace.h:744: error: 'size_t' has not been declared
c:/users/jonkos/desktop/robot/arduino-1.0/hardware/tools/avr/lib/gcc/../../avr/include/avr/pgmspace.h:745: error: 'size_t' has not been declared
c:/users/jonkos/desktop/robot/arduino-1.0/hardware/tools/avr/lib/gcc/../../avr/include/avr/pgmspace.h:746: error: 'size_t' has not been ...
...
...
...
...
c:/users/jonkos/desktop/robot/arduino-1.0/hardware/tools/avr/lib/gcc/../../avr/include/avr/pgmspace.h:764: error: 'size_t' has not been declared
c:/users/jonkos/desktop/robot/arduino-1.0/hardware/tools/avr/lib/gcc/../../avr/include/avr/pgmspace.h:768: error: 'size_t' does not name a type
In file included from C:\Users\jonkos\Desktop\Robot\arduino-1.0\hardware\arduino\cores\arduino/Print.h:24,
                 from C:\Users\jonkos\Desktop\Robot\arduino-1.0\hardware\arduino\cores\arduino/Stream.h:26,
                 from C:\Users\jonkos\Desktop\Robot\arduino-1.0\hardware\arduino\cores\arduino/HardwareSerial.h:27,
                 from C:\Users\jonkos\Desktop\Robot\arduino-1.0\hardware\arduino\cores\arduino/arduino.h:192,
                 from sketch_jul25a.cpp:3:
c:/users/jonkos/desktop/robot/arduino-1.0/hardware/tools/avr/lib/gcc/../../avr/include/stdio.h:685: error: 'size_t' has not been declared
...
c:/users/jonkos/desktop/robot/arduino-1.0/hardware/tools/avr/lib/gcc/../../avr/include/stdio.h:840: error: 'size_t' does not name a type
In file included from C:\Users\jonkos\Desktop\Robot\arduino-1.0\hardware\arduino\cores\arduino/Printable.h:23,
                 from C:\Users\jonkos\Desktop\Robot\arduino-1.0\hardware\arduino\cores\arduino/Print.h:27,
                 from C:\Users\jonkos\Desktop\Robot\arduino-1.0\hardware\arduino\cores\arduino/Stream.h:26,
                 from C:\Users\jonkos\Desktop\Robot\arduino-1.0\hardware\arduino\cores\arduino/HardwareSerial.h:27,
                 from C:\Users\jonkos\Desktop\Robot\arduino-1.0\hardware\arduino\cores\arduino/arduino.h:192,
                 from sketch_jul25a.cpp:3:
C:\Users\jonkos\Desktop\Robot\arduino-1.0\hardware\arduino\cores\arduino/new.h:10: error: declaration of 'operator new' as non-function
C:\Users\jonkos\Desktop\Robot\arduino-1.0\hardware\arduino\cores\arduino/new.h:10: error: 'size_t' was not declared in this scope
In file included from C:\Users\jonkos\Desktop\Robot\arduino-1.0\hardware\arduino\cores\arduino/Print.h:27,
                 from C:\Users\jonkos\Desktop\Robot\arduino-1.0\hardware\arduino\cores\arduino/Stream.h:26,
                 from C:\Users\jonkos\Desktop\Robot\arduino-1.0\hardware\arduino\cores\arduino/HardwareSerial.h:27,
                 from C:\Users\jonkos\Desktop\Robot\arduino-1.0\hardware\arduino\cores\arduino/arduino.h:192,
                 from sketch_jul25a.cpp:3:
C:\Users\jonkos\Desktop\Robot\arduino-1.0\hardware\arduino\cores\arduino/Printable.h:36: error: 'size_t' does not name a type
In file included from C:\Users\jonkos\Desktop\Robot\arduino-1.0\hardware\arduino\cores\arduino/Stream.h:26,
                 from C:\Users\jonkos\Desktop\Robot\arduino-1.0\hardware\arduino\cores\arduino/HardwareSerial.h:27,
                 from C:\Users\jonkos\Desktop\Robot\arduino-1.0\hardware\arduino\cores\arduino/arduino.h:192,
                 from sketch_jul25a.cpp:3:
C:\Users\jonkos\Desktop\Robot\arduino-1.0\hardware\arduino\cores\arduino/Print.h:38: error: 'size_t' does not name a type
..
C:\Users\jonkos\Desktop\Robot\arduino-1.0\hardware\arduino\cores\arduino/Print.h:75: error: 'size_t' does not name a type
In file included from C:\Users\jonkos\Desktop\Robot\arduino-1.0\hardware\arduino\cores\arduino/HardwareSerial.h:27,
                 from C:\Users\jonkos\Desktop\Robot\arduino-1.0\hardware\arduino\cores\arduino/arduino.h:192,
                 from sketch_jul25a.cpp:3:
C:\Users\jonkos\Desktop\Robot\arduino-1.0\hardware\arduino\cores\arduino/Stream.h:62: error: 'size_t' has not been declared
..
C:\Users\jonkos\Desktop\Robot\arduino-1.0\hardware\arduino\cores\arduino/Stream.h:80: error: 'size_t' does not name a type
In file included from C:\Users\jonkos\Desktop\Robot\arduino-1.0\hardware\arduino\cores\arduino/arduino.h:192,
                 from sketch_jul25a.cpp:3:
C:\Users\jonkos\Desktop\Robot\arduino-1.0\hardware\arduino\cores\arduino/HardwareSerial.h:58: error: 'size_t' does not name a type
C:\Users\jonkos\Desktop\Robot\arduino-1.0\hardware\arduino\cores\arduino/HardwareSerial.h:59: error: no members matching 'Print::write' in 'class Print'

Would really appriciate some help, been searching for solutions for hours now and getting nowhere :confused: .
Thanks in advance

void setup ()
{
  size_t x = 2;
}

void loop () {}

Gives "Binary sketch size: 466 bytes (of a 30, 720 byte maximum)"

Is there something you're not telling us?
Like code...

running code, IKclass coming in a sec

#include <IKclass.h>
#include <arduino.h>
  legIK leg1; //h fram
  legIK leg2; //v fram
  legIK leg3; //h bak
  legIK leg4; //v bak 
void setup()
{
  Serial.begin(9600);
  leg1.setLegNr(1);
  leg2.setLegNr(2);
  leg3.setLegNr(3);
  leg4.setLegNr(4);
  leg1.setLen(0, 10, 11);
  leg2.setLen(0, 10, 11);
  leg3.setLen(0, 10, 11);
  leg4.setLen(0, 10, 11);
  leg1.setChannels(0,1,2);
  leg2.setChannels(8,9,10);
  leg3.setChannels(16,17,18);
  leg4.setChannels(24,25,26); 
  mainPoseWalk();
  delay(5000);
	
  //leg1.IKsolver(7.07106781, 7.07106781, -11);
 

}
//bodyshift, leg1 & leg2's y skall vara *-1
void loop(){
  turnLeft(2);

}

void bodyshifter(){
  int time = 2000;
  leg1.shiftBody(5, 0, 0); //kroppen i +x led
  leg2.shiftBody(5, 0, 0);
  leg3.shiftBody(-5, 0, 0);
  leg4.shiftBody(-5, 0, 0);
     leg1.SEND(time);
  leg2.SEND(time);
  leg3.SEND(time);
  leg4.SEND(time);
  delay(time);
/*  leg1.shiftBody(0, -5, 0);
  leg2.shiftBody(0, -5, 0);
  leg3.shiftBody(0, 5, 0);
  leg4.shiftBody(0, 5, 0);
     leg1.SEND(time);
  Serial.print(" ");
  leg2.SEND(time);
  Serial.print(" ");
  leg3.SEND(time);
  Serial.print(" ");
  leg4.SEND(time);
  Serial.println("");
  delay(time);*/
   leg1.shiftBody(-5, 0, 0);
  leg2.shiftBody(-5, 0, 0);
  leg3.shiftBody(5, 0, 0);
  leg4.shiftBody(5, 0, 0);
     leg1.SEND(time);
  leg2.SEND(time);
  leg3.SEND(time);
  leg4.SEND(time);

  delay(time);
/*    leg1.shiftBody(0, -5, 0);
  leg2.shiftBody(0, -5, 0);
  leg3.shiftBody(0, 5, 0);
  leg4.shiftBody(0, 5, 0);
     leg1.SEND(time);
  Serial.print(" ");
  leg2.SEND(time);
  Serial.print(" ");
  leg3.SEND(time);
  Serial.print(" ");
  leg4.SEND(time);
  Serial.println("");
  delay(time);*/
}

void mainPoseX(){
   leg1.IKsolver(7.07106781, 7.07106781, -11);
  leg2.IKsolver(-7.07106781, 7.07106781, -11);
  leg3.IKsolver(7.07106781, 7.07106781, -11);
  leg4.IKsolver(-7.07106781, 7.07106781, -11);
leg1.SEND(500);

  leg2.SEND(500);

  leg3.SEND(500);

 leg4.SEND(500);

}


void mainPoseWalk(){
  leg1.IKsolver(0, -10, -11);
  leg2.IKsolver(0, -10, -11);
  leg3.IKsolver(0, 10, -11);
  leg4.IKsolver(0, 10, -11);
  leg1.SEND(200);
  leg2.SEND(300);
  leg3.SEND(300);
  leg4.SEND(300);
  delay(350);
}


void testWalk(){
leg2.shiftBody(4, 0, 5);//lyft och flytta framåt
leg1.shiftBody(2, -2, 0);
leg3.shiftBody(2, 2, 0);
leg4.shiftBody(2, 2, 0);
leg1.SEND(500);
leg2.SEND(500);
leg3.SEND(500);
leg4.SEND(500);
}



void attack(){
leg1.IKsolver(0, 5, 5);
leg1.SEND(200);
delay(400);
leg1.IKsolver(-5, 14, -11);
leg1.SEND(100);
delay(200);
}

void turnLeft(int steps){// et steg motsvarar cirka 90 graders sväng.
int time_long = 300;
int time_short = 200;
  for (int i = 0; i < steps; i++){
  leg1.IKsolver(10, 0, -5);
  leg1.SEND(time_long);
  delay(time_long);
  leg1.IKsolver(10, 0, -11);
  leg1.SEND(time_short);
  delay(time_short);
  
  leg3.IKsolver(0, 10, -5);
  leg3.SEND(time_long);
  delay(time_long);
  leg3.IKsolver(0, 10, -11);
  leg3.SEND(time_short);
  delay(time_short);
  
  leg4.IKsolver(10, 0, -5);
  leg4.SEND(time_long);
delay(time_long);
  leg4.IKsolver(-10, 0, -11);
  leg4.SEND(time_short);

  delay(time_short);
  
  leg2.IKsolver(0, -10, -5);
  leg2.SEND(time_long);

  delay(time_long);
  leg2.IKsolver(0, -10, -11);
  leg2.SEND(time_short);

  delay(time_short);

  if (steps-i >1)
  {
    leg1.IKsolver(0, -10, -11);
    leg2.IKsolver(-10, 0, -11);
    leg3.IKsolver(10, 0, -11);
    leg4.IKsolver(0, 10, -11);
     leg1.SEND(time_short);
  leg2.SEND(time_short);
  leg3.SEND(time_short);
  leg4.SEND(time_short);
  delay(time_short);
  }

  }
  //Gå tillabaka till main position.
mainPoseX();
  leg1.SEND(500);
  leg2.SEND(500);
  leg3.SEND(500);
  leg4.SEND(500);
  delay(500);
}

void moveBody(double x, double y, double z, int time){
  leg1.shiftBody(x, y, z);
  leg2.shiftBody(x, y, z);
  leg3.shiftBody(x, y, z);
  leg4.shiftBody(x, y, z);
   leg1.SEND(time);
  leg2.SEND(time);
  leg3.SEND(time);
  leg4.SEND(time);
  delay(time);
}

void interpolation(double x, double y, double z, int steps){
 for (int i = 0; i<steps; i++){
   leg1.shiftBody(x/steps, y/steps, z * sin(i/steps*3.14));
   leg1.SEND(100);
   delay(100);
 }
  
}


 void w(int steps, int len, int time){
 /*Gaiten för benen ser ut som följande:
	 1: lyft höger bak, flytta fram det halva sin steg längd på time/2 , rör kroppen 1/4 av steg längden frammåt med övriga benen på time.
	 2. sätt ner ben och rör det resterande halva steg längden över tiden time.
	 repetera för varje ben.

	 Måste gå till "startposition för att kunna sätta igång gaiten ordentligt.
	 */
	 
	 //start steg 1, ben 2 rör sig framåt
	 leg1.shiftBody(leg1.getLeg()*len/3, 0, 0);
	 leg2.shiftBody(-leg2.getLeg()*len/2, 0, 5);
         leg3.shiftBody(leg3.getLeg()*len/3, 0, 0);
	 leg4.shiftBody(leg4.getLeg()*len/3, 0, 0);
	 leg1.SEND(2*time);
	 leg2.SEND(time);
	 leg3.SEND(2*time);
	 leg4.SEND(2*time);
	 delay(time);
	 leg2.shiftBody(-leg2.getLeg()*len/2, 0, -5);
         leg2.SEND(time);
         delay(time);
         //slut steg 1
        //start steg 2, ben 1 rör sig framåt
         leg1.shiftBody(-leg1.getLeg()*len/2, 0, 5);
         leg2.shiftBody(leg2.getLeg()*len/3, 0, 0);
         leg3.shiftBody(leg3.getLeg()*len/3, 0, 0);
	 leg4.shiftBody(leg4.getLeg()*len/3, 0, 0);
	 leg1.SEND(time);
	 leg2.SEND(2*time);
	 leg3.SEND(2*time);
	 leg4.SEND(2*time);
	 delay(time);
	 leg1.shiftBody(-leg1.getLeg()*len/2, 0, -5);
         leg1.SEND(time);
         delay(time);
         //steg2 slut
         //steg3, ben 4 rör sig framåt
         leg1.shiftBody(leg1.getLeg()*len/3, 0, 0);
         leg2.shiftBody(leg2.getLeg()*len/3, 0, 0);
         leg3.shiftBody(leg3.getLeg()*len/3, 0, 0);
	 leg4.shiftBody(-leg4.getLeg()*len/2, 0, 5);
	 leg1.SEND(2*time);
	 leg2.SEND(2*time);
	 leg3.SEND(2*time);
	 leg4.SEND(time);
	 delay(time);
	 leg4.shiftBody(-leg4.getLeg()*len/2, 0, -5);
         leg4.SEND(time);
         delay(time);
         //steg3 slut
         //steg4, ben 3 rör sig framåt
         leg1.shiftBody(leg1.getLeg()*len/3, 0, 0);
         leg2.shiftBody(leg2.getLeg()*len/3, 0, 0);
         leg3.shiftBody(-leg3.getLeg()*len/2, 0, 5);
	 leg4.shiftBody(leg4.getLeg()*len/3, 0, 0);
	 leg1.SEND(2*time);
	 leg2.SEND(2*time);
	 leg3.SEND(time);
	 leg4.SEND(2*time);
	 delay(time);
	 leg3.shiftBody(-leg3.getLeg()*len/2, 0, -5);
         leg3.SEND(time);
         delay(time);
         //steg4 slut
 }

The library being used:

#include "IKclass.h"	
#include "math.h"
#include "arduino.h"
void legIK::setLen(int coxa, int ferma, int tibia){
	coxa_length = coxa;
	ferma_length = ferma;
	tibia_length = tibia;
}
void legIK::setLegNr(int leg){ LegNr = leg;}
void legIK::setSpeed (int s){speed = s;}
void legIK::setChannels(int coxa, int ferma, int tibia){
	ch1 = coxa;
	ch2 = ferma;
	ch3 = tibia;
}
void legIK::IKsolver(double targetX, double targetY, double targetZ){
	double targetXY = sqrt(targetX*targetX+targetY*targetY);
	
	
	IKsolver2D(targetXY, targetZ);
	
	if (targetY==0 && targetX != 0){
		switch(LegNr){
		case 1:
			angle3 = 1.57;//pi/2
			break;
		case 2:
			angle3 = -1.57;
			break;
		case 3:
			angle3 = 1.57;
			break;
		case 4:
			angle3 = -1.57;
			break;
		default:
			angle3 = 0;}
	}
	else if (targetX==0 && targetY != 0)
		angle3 = 0;
	else if (targetX == 0 &&targetY ==0)
		angle3 = 0.785; //pi/4
	else{
		double xdenomy = targetX/targetY;
		//angle3 = atan2(targetX, targetY);
	Serial.print("xdenom y; ");
	Serial.println(xdenomy);
	angle3 = atan(xdenomy);

	if (angle3 > 1.57){ //pi/2 för att det skall hålla sig inom rimliga värden
		angle3 = 3.14 - angle3;
		
		Serial.println("större");}
	else if (angle3 < -1.57){
		angle3 = 3.14 + angle3;
		
		Serial.println("mindre");}

	}
	currentX = targetX;
	currentY = targetY;
	currentZ = targetZ;
	Serial.print("eftershiften, current, ben nummer x, y, z , newline radianer= "); Serial.print(LegNr); Serial.print(" ");
	Serial.print(currentX); Serial.print(" "); Serial.print(currentY); Serial.print(" "); Serial.println(currentZ);
	
	Serial.println(angle3);
}
void legIK::IKsolver2D(double targetX, double targetY)//gjord för 2d, y är i verkliga z, x =xy
		{
			bool solvePosAngle2  = false;// = false; // Om den skall lösa för positivt istället för negativt på angle2
			const double toCloseToZero = 0.0001; //undivka att dividera med värden för nära noll.
			bool foundValidSolution = true;
			const double epsilon = 0.0001; // used to prevent division by small numbers
			//Serial.print("targetX = "); Serial.println(targetX);
			//Serial.print("targety = "); Serial.println(targetY);

			double targetDistSqr = (targetX*targetX + targetY*targetY);

			//===
			// Compute a new value for angle2 along with its cosinnuse
			double sinusAngle2;
			double cosinusAngle2;
		 
			double cosinusAngle2_denom = 2*ferma_length*tibia_length;
			if( cosinusAngle2_denom > epsilon )
			{
				cosinusAngle2 =   (targetDistSqr - ferma_length*ferma_length - tibia_length*tibia_length)
							/ (cosinusAngle2_denom);
		 
				// if our result is not in the legal cosinusinuse range, we can not find a
				// legal solution for the target
				if( (cosinusAngle2 < -1.0) || (cosinusAngle2 > 1.0) )
					foundValidSolution = false;
		 
				// clamp our value into range so we can calculate the best
				// solution when there are no valid ones
				cosinusAngle2 = max(-1, min( 1, cosinusAngle2 ) );
		 
				// compute a new value for angle2
				angle2 = acos( cosinusAngle2 );
		 
				// adjust for the desired bend direction
				if( !solvePosAngle2 )
					angle2 = -angle2;

				// compute the sinuse of our angle
				sinusAngle2 = sin	( angle2 );
				//Serial.print("Angle2 = "); Serial.println(angle2*180/3.14);
			}
			else
			{
				// At leaset one of the bones had a zero length. This means our
				// solvable domain is a circle around the origin with a radius
				// equal to the sum of our bone lengths.
				double totalLenSqr = (ferma_length + tibia_length) * (ferma_length + tibia_length);
				if(    targetDistSqr < (totalLenSqr-epsilon)
					|| targetDistSqr > (totalLenSqr+epsilon) )
				{
					foundValidSolution = false;
				}

				// Only the value of angle1 matters at this point. We can just
				// set angle2 to zero. 
				angle2    = 0.0;
				cosinusAngle2 = 1.0;
				sinusAngle2 = 0.0;
			}
		 
			//===
			// Compute the value of angle1 based on the sinuse and cosinusinuse of angle2
			double triAdjacent = ferma_length + tibia_length*cosinusAngle2;
			double triOpposite = tibia_length*sinusAngle2;
		 
			double tanY = targetY*triAdjacent - targetX*triOpposite;
			double tanX = targetX*triAdjacent + targetY*triOpposite;
		 
			// Note that it is safe to call Atan2(0,0) which will happen if targetX and
			// targetY are zero
			angle1 = atan2( tanY, tanX );
			//Serial.print("Angle1 = "); Serial.println(angle1*180/3.14);
		}
void legIK::shiftBody(int dx, int dy, int dz)
{   //flytta benet i förhållandevis till nuvarande position
	/*currentX += dx;
	currentY += dy;
	currentZ += dz;*/
	//Serial.print("shift body, current, ben nummer x, y, z = "); Serial.print(LegNr); Serial.print(" ");
	//Serial.print(currentX); Serial.print(" "); Serial.print(currentY); Serial.print(" "); Serial.println(currentZ);
	IKsolver(currentX+dx, currentY+dy, currentZ+dz);
}
void legIK::yawRoll(int yaw, int roll)
{//luta kroppen på x/y axeln
}
int legIK::converter(double a, int channel)
{ //Skickar tillbaka "kalibrerade" värden i microsekunder redo att skickas till SSC.
	int res;
	switch (channel)
	{
	case 0:
		res = 1500+a*318.47;
		if (res > 2000)
			return 2000;
		else if (res < 1200)
			return 1200;
		else return res;

		break;
	case 1:
		res = 1250-a*318.47;
		if (res > 1750)
			return 1750;
		else if (res < 750)
			return 750;
		else return res;
		break;
	case 2:
				res = 1450+a*318.47;
		if (res > 1950)
			return 1950;
		else if (res < 950)
			return 950;
		else return res;

		break;
		
	case 8:
				res = 1500+a*318.47;
		if (res > 1800)
			return 1800;
		else if (res < 1000)
			return 1000;
		else return res;

		break;
	case 9:
		res = 1250-a*318.47;
		if (res > 1750)
			return 1750;
		else if (res < 750)
			return 750;
		else return res;
		break;
	case 10:
		res = 1650+a*573.24;
		if (res > 2200)
			return 2200;
		else if (res < 750)
			return 750;
		else return res;
		break;

		
	case 16:
				res = 1500-a*318.47;
		if (res > 1800)
			return 1800;
		else if (res < 1000)
			return 1000;
		else return res;
		break;
	case 17:	
		res = 1500+a*318.47;
		if (res > 2000)
			return 2000;
		else if (res < 1000)
			return 1000;
		else return res;
		break;
	case 18:
				res = 1300-a*318.47;
		if (res > 1800)
			return 1800;
		else if (res < 800)
			return 800;
		else return res;
		break;

		
	case 24:
		res = 1500-a*318.47;
		if (res > 2000)
			return 2000;
		else if (res < 1200)
			return 1200;
		else return res;
		break;
	case 25:
				res = 1500+a*318.47;
		if (res > 2000)
			return 2000;
		else if (res < 1000)
			return 1000;
		else return res;
		break;
	case 26:
				res = 1250-a*318.47;
		if (res > 1750)
			return 1750;
		else if (res < 750)
			return 750;
		else return res;
		break;
	default:
		return 1500;
	}

	

}
/*int legIK::speedconverter()
{
	//return (20-speed)*100;
	return 500;
}*/
void legIK::SEND(int time)//Main skall ha send all som avslutas med Serial.println(); och 	Serial.print(""); mellan alla;
{//Skickar hur servona skall böjas sig till SSC
	// ex, för att vrida servo 1 till 1500usec(0 grader) över 1 sekund skickas
	// #0 P1500 T1000<cr>
	//för att skicka fler som denna gör så, läggs det på efter den första, men innan <cr> så ex: #0 P1500 T1000 #1 P1000 T1000<cr>
	Serial.print("#");
	Serial.print(ch1);
	Serial.print(" P");
	Serial.print(converter(angle3, ch1));
	Serial.print(" T");
	Serial.print(time);
	//Serial.print(speedconverter());
	Serial.print(" ");
	Serial.print("#");
	Serial.print(ch2);
	Serial.print(" P");
	Serial.print(converter(angle1, ch2));
	Serial.print(" T");
	Serial.print(time);
	//Serial.print(speedconverter());
	Serial.print(" ");

	Serial.print("#");
	Serial.print(ch3);
	Serial.print(" P");
	Serial.print(converter(angle2, ch3));
	Serial.print(" T");
	Serial.print(time);
	//Serial.print(speedconverter());
	Serial.println(" ");
}
void legIK::sendSingle(int channel, double b)
{//som ovan men för ett enda servo.
	Serial.print("#");
	Serial.print(channel);
	Serial.print(" P");
	Serial.print(converter(b, channel));
	Serial.print(" T500");
	//Serial.print(speedconverter());
}
void legIK::test()
{
	Serial.print("coxa : "); Serial.println(angle3);
	Serial.print("coxa : "); Serial.println(angle3*180/3.14);
	Serial.print("ferma: "); Serial.println(angle1);
	Serial.print("ferma: "); Serial.println(angle1*180/3.14);
	Serial.print("tibia: "); Serial.println(angle2);
	Serial.print("tibia: "); Serial.println(angle2*180/3.14);
}


int legIK::getLeg(){
	if (LegNr == 3 || LegNr == 4)
		return -1;
	else return 1;
}
//void legIK::stepInterpolation

AWOL:

void setup ()

{
  size_t x = 2;
}

void loop () {}



Gives "Binary sketch size: 466 bytes (of a 30, 720 byte maximum)"

Is there something you're not telling us?
Like code...

This works fine for me.

Arduino.h needs a capital A.

WizenedEE:
Arduino.h needs a capital A.

Doesn't need, used it without before with success, but tried with it and still the same errors unfortunally.

jonkos:

WizenedEE:
Arduino.h needs a capital A.

Doesn't need, used it without before with success, but tried with it and still the same errors unfortunally.

It needs it on most (ie non windows) OSs.

WizenedEE:

jonkos:

WizenedEE:
Arduino.h needs a capital A.

Doesn't need, used it without before with success, but tried with it and still the same errors unfortunally.

It needs it on most (ie non windows) OSs.

Ok, Im running Windows if that helps anyone to give me a hint about whats wrong.

Seems like i've solved it, included Arduino.h in the .cpp not the header.

jonkos:
Seems like i've solved it, included Arduino.h in the .cpp not the header.

I just had the same error. With that for a hint, I solved it differently. Just had to move the {library}.h file to the top of the .cpp file, so that it was before the struct that was referencing size_t.

That is what I get for doing 'cleanup' on working code. :~