Huge Compile Error after small additions/changes (CAN Bus)

all i did was copy what was in the file and then changes it as well as the change the cpp

Compile error:

EGR301_mDVR_overlays_rev3:18: error: expected ',' or '...' before numeric constant
EGR301_mDVR_overlays_rev3:19: error: expected ',' or '...' before numeric constant
EGR301_mDVR_overlays_rev3:32: error: expected unqualified-id before numeric constant
EGR301_mDVR_overlays_rev3:33: error: expected unqualified-id before numeric constant
EGR301_mDVR_overlays_rev3:34: error: expected unqualified-id before numeric constant
EGR301_mDVR_overlays_rev3:35: error: expected unqualified-id before numeric constant
EGR301_mDVR_overlays_rev3:99: error: expected ',' or '...' before numeric constant
EGR301_mDVR_overlays_rev3:112: error: expected ',' or '...' before numeric constant
EGR301_mDVR_overlays_rev3.cpp: In function 'void Get_CAN_Data(int*, int*, int*, int*, int*)':
EGR301_mDVR_overlays_rev3:139: error: invalid type argument of 'unary *'
EGR301_mDVR_overlays_rev3:142: error: invalid type argument of 'unary *'
EGR301_mDVR_overlays_rev3:145: error: invalid type argument of 'unary *'
EGR301_mDVR_overlays_rev3:148: error: invalid type argument of 'unary *'
EGR301_mDVR_overlays_rev3.cpp: In function 'void loop()':
EGR301_mDVR_overlays_rev3:189: error: lvalue required as unary '&' operand
EGR301_mDVR_overlays_rev3:189: error: lvalue required as unary '&' operand
EGR301_mDVR_overlays_rev3:189: error: lvalue required as unary '&' operand
EGR301_mDVR_overlays_rev3:189: error: lvalue required as unary '&' operand
EGR301_mDVR_overlays_rev3:157: error: too many arguments to function 'void Serial_CAN_Print(int, int, int, int)'
EGR301_mDVR_overlays_rev3:190: error: at this point in file
EGR301_mDVR_overlays_rev3:99: error: too many arguments to function 'void mDVR_Print(int, int, int, int)'
EGR301_mDVR_overlays_rev3:191: error: at this point in file

canbus.h

/**
 * CAN BUS
 *
 * 
 */

#ifndef canbus__h
#define canbus__h

#define CANSPEED_125    7       // CAN speed at 125 kbps
#define CANSPEED_250   3       // CAN speed at 250 kbps
#define CANSPEED_500    1       // CAN speed at 500 kbps


#define ENGINE_COOLANT_TEMP      0x05
#define ENGINE_RPM               0x0C
#define VEHICLE_SPEED            0x0D
#define MAF_SENSOR               0x10
#define O2_VOLTAGE               0x14
#define THROTTLE                 0x11


#define CALCULATED_ENGINE_LOAD     0x04 //K.Stanley-11/19/2011
#define ABS_INTAKE_PRESSURE        0x0B  //K.Stanley-11/19/2011
#define TIMING_ADVANCE             0x0E  //K.Stanley-11/19/2011
#define FUEL_RAIL_PRESSURE         0x23 //K.Stanley-11/19/2011
#define COMMANDED_EGR              0x2C //K.Stanley-11/19/2011
#define DRIVERS_TORQUE_DEMAND      0x61 //K.Stanley-11/19/2011
#define ACTUAL_TORQUE              0x62 //K.Stanley-11/19/2011
#define ENGINE_TORQUE_REFERENCE    0x63 //K.Stanley-11/19/2011
#define OIL_TEMPATURE              0x5C




#define PID_REQUEST      0x7DF
#define PID_REPLY        0x7E8

class CanbusClass
{
  public:

    CanbusClass();
    char init(unsigned char);
    char message_tx(void);
    char message_rx(unsigned char *buffer);
    char ecu_req(unsigned char pid,  char *buffer);
private:

};
extern CanbusClass Canbus;
//extern tCAN message;

#endif

canbus.cpp

/**
 * 
 *
 * 
 */
#include "WConstants.h"
#include <stdio.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#include "pins_arduino.h"
#include <inttypes.h>
#include "global.h"
#include "mcp2515.h"
#include "defaults.h"
#include "Canbus.h"




/* C++ wrapper */
CanbusClass::CanbusClass() {

 
}
char CanbusClass::message_rx(unsigned char *buffer) {
		tCAN message;
	
		if (mcp2515_check_message()) {
		
			
			// Lese die Nachricht aus dem Puffern des MCP2515
			if (mcp2515_get_message(&message)) {
			//	print_can_message(&message);
			//	PRINT("\n");
				buffer[0] = message.data[0];
				buffer[1] = message.data[1];
				buffer[2] = message.data[2];
				buffer[3] = message.data[3];
				buffer[4] = message.data[4];
				buffer[5] = message.data[5];
				buffer[6] = message.data[6];
				buffer[7] = message.data[7];								
//				buffer[] = message[];
//				buffer[] = message[];
//				buffer[] = message[];
//				buffer[] = message[];																												
			}
			else {
			//	PRINT("Kann die Nachricht nicht auslesen\n\n");
			}
		}

}

char CanbusClass::message_tx(void) {
	tCAN message;


	// einige Testwerte
	message.id = 0x7DF;
	message.header.rtr = 0;
	message.header.length = 8;
	message.data[0] = 0x02;
	message.data[1] = 0x01;
	message.data[2] = 0x05;
	message.data[3] = 0x00;
	message.data[4] = 0x00;
	message.data[5] = 0x00;
	message.data[6] = 0x00;
	message.data[7] = 0x00;						
	
	
	
	
//	mcp2515_bit_modify(CANCTRL, (1<<REQOP2)|(1<<REQOP1)|(1<<REQOP0), (1<<REQOP1));	
		mcp2515_bit_modify(CANCTRL, (1<<REQOP2)|(1<<REQOP1)|(1<<REQOP0), 0);
		
	if (mcp2515_send_message(&message)) {
		//	SET(LED2_HIGH);
		return 1;
	
	}
	else {
	//	PRINT("Fehler: konnte die Nachricht nicht auslesen\n\n");
	return 0;
	}
return 1;
 
}

char CanbusClass::ecu_req(unsigned char pid,  char *buffer) 
{
	tCAN message;
	float engine_data;
	int timeout = 0;
	char message_ok = 0;
	// Prepair message
	message.id = PID_REQUEST;
	message.header.rtr = 0;
	message.header.length = 8;
	message.data[0] = 0x02;
	message.data[1] = 0x01;
	message.data[2] = pid;
	message.data[3] = 0x00;
	message.data[4] = 0x00;
	message.data[5] = 0x00;
	message.data[6] = 0x00;
	message.data[7] = 0x00;						
	

	mcp2515_bit_modify(CANCTRL, (1<<REQOP2)|(1<<REQOP1)|(1<<REQOP0), 0);
//		SET(LED2_HIGH);	
	if (mcp2515_send_message(&message)) {
	}
	
	while(timeout < 4000)
	{
		timeout++;
				if (mcp2515_check_message()) 
				{

					if (mcp2515_get_message(&message)) 
					{
							if((message.id == PID_REPLY) && (message.data[2] == pid))	// Check message is the reply and its the right PID
							{
								switch(message.data[2])
								{   /* Details from http://en.wikipedia.org/wiki/OBD-II_PIDs */
									case ENGINE_RPM:  			//Engine RPM 0x0C [0-16383.75]
									engine_data =  ((message.data[3]*256) + message.data[4])/4; //((A*256)+B)/4
									sprintf(buffer,"%d",(int) engine_data);
									break;
							
									case ENGINE_COOLANT_TEMP: 	// Engine coolant temperature 0x05 [-40-215 Deg C]
									engine_data =  message.data[3] - 40; //A-40
									sprintf(buffer,"%d",(int) engine_data);
									break;
							
									case VEHICLE_SPEED: 		// 	Vehicle speed 0x0D [km/h]
									engine_data =  message.data[3]; //A 
									sprintf(buffer,"%d",(int) engine_data);
									break;

									case MAF_SENSOR:   		// ((256*A)+B) / 100  [g/s]
									engine_data =  ((message.data[3]*256) + message.data[4])/100;
									sprintf(buffer,"%d",(int) engine_data);
									break;

									case O2_VOLTAGE:    		// A * 0.005   (B-128) * 100/128 (if B==0xFF, sensor is not used in trim calc)
									engine_data = message.data[3]*0.005;
									sprintf(buffer,"%d",(int) engine_data);
							
									case THROTTLE:			// Throttle Position
									engine_data = (message.data[3]*100)/255;
									sprintf(buffer,"%d",(int) engine_data);
									break;

									case ABS_INTAKE_PRESSURE:		// Intake manifold absolute pressure 0x0B [0-255 kPa]
									engine_data = (message.data[3]); // A
									sprintf(buffer,"%d",(int) engine_data); // "%d %% "
									break;

									case TIMING_ADVANCE:                     // Timing advance 0x0E [-64-63.5°] 
									engine_data = (message.data[3]/2)/-64; //A/2 - 64
									sprintf(buffer,"%d",(int) engine_data); //" ° "
									break;

									case CALCULATED_ENGINE_LOAD:		//Calculated engine load 0x04 [0-100%]
									engine_data = (message.data[3]*100)/255; //A*100/255
									sprintf(buffer,"%d",(int) engine_data);  //%%
									break;

									case DRIVERS_TORQUE_DEMAND:		//  Driver's demand engine - percent torque 0x61 [-125-125%]
									engine_data = (message.data[3]-125); //A-125
									sprintf(buffer,"%d",(int) engine_data);  //%%
									break;

									case ACTUAL_TORQUE:			// Actual engine - percent torque 0x62 [-125-125%]
									engine_data = (message.data[3]-125); //A-125
									sprintf(buffer,"%d",(int) engine_data); //%%
									break;

									case ENGINE_TORQUE:			//  Engine reference torque 0x63 [Nm]
									engine_data = (message.data[3]*256 + message.data[4]); //A*256+B
									sprintf(buffer,"%d",(int) engine_data);
									break;

									case FUEL_RAIL_PRESSURE:		//  Fuel Rail Pressure 0x23 [0-655,350 kPa] 
									engine_data = (((message.data[3]*256) + message.data[4]))*10; //((A*256)+B) * 10
									sprintf(buffer,"%d",(int) engine_data); // kPa
									break;

									case COMMANDED_EGR:		//  Commanded EGR 0x2C [0-100%]
									engine_data = message.data[3]*100/255 ; //100*A/255
									sprintf(buffer,"%d",(int) engine_data); //%%
									break;

									case OIL_TEMPATURE:		//Engine oil temperature 0x5C [-40-210 DegC]
									engine_data = message.data[3]-40 ; //A-40
									sprintf(buffer,"%d",(int) engine_data); //%%
									break;


							
								}
								message_ok = 1;
							}

					}
				}
				if(message_ok == 1) return 1;
	}


 	return 0;
}






char CanbusClass::init(unsigned char speed) {

  return mcp2515_init(speed);
 
}

CanbusClass Canbus;

What is EGR301_mDVR_overlays_rev3? Is that your code? That is what the compiler seems to be complaining about, but you haven't posted it.

yeah that is my code. thought i posted it ...oops... the forum only allows for 9500characters per post.

i figured it out though, part of the problem was i did not copy the updated cpp & h file like i thought, as well as one type DRIVERS_TORQUE Vs DRIVERS_TORQUE_DEMAND: