Problem mixing NRF24l01 code and MMA8452Q_Basic code

Hi y’all,

I am currently working on a project were I am using a NRF24l01 (http://www.nordicsemi.com/eng/Products/2.4GHz-RF/nRF24L01) to send data collected by an Accelerometer (SparkFun Triple Axis Accelerometer Breakout - MMA8452Q - SEN-12756 - SparkFun Electronics). I am using the MMA8452Q library that can be downloading from Github and a code developed by a mentor derived from someone elses code. I keep getting weird error messages when I try to #include the MMA8452Q library within the NRF code.

My code is as follows:

//http://forum.arduino.cc/index.php?topic=138663.0
#include <SPI.h>
#include "nRF24L01.h"
#include "RF24.h"
#include <Wire.h> // Must include Wire library for I2C
#include <SFE_MMA8452Q.h>
MMA8452Q accel;
int msg[5];
RF24 radio(9,10);
const uint64_t pipe = 0xE8E8F0F0E1LL;
int SW1 = 7;
 
void setup()
{
  Serial.begin(9600);
  radio.begin();
  radio.openWritingPipe(pipe);
  
}
 
void loop()
{
  Serial.println("Emitting");
  int a=1;
  if (a == 1)
  {
  msg[0] = 12345;
  radio.write(msg, 5);
  Serial.println(msg[0]);
  delay(10);
  }
  
}

Here are the error messages:

In file included from EM_NRF_Accel.ino:6:
C:\Users\Flynn\Documents\Arduino\libraries\SFE_MMA8452Q/SFE_MMA8452Q.h:30: error: expected identifier before numeric constant
C:\Users\Flynn\Documents\Arduino\libraries\SFE_MMA8452Q/SFE_MMA8452Q.h:30: error: expected `}' before numeric constant
C:\Users\Flynn\Documents\Arduino\libraries\SFE_MMA8452Q/SFE_MMA8452Q.h:30: error: expected unqualified-id before numeric constant
C:\Users\Flynn\Documents\Arduino\libraries\SFE_MMA8452Q/SFE_MMA8452Q.h:72: error: expected declaration before '}' token