FRC79 / CK_16

Code base for CK_16 (C++)
0 stars 0 forks source link

Multiple Definitions of START_ROBOT_CLASS(X) #12

Closed schreiaj closed 11 years ago

schreiaj commented 11 years ago

https://github.com/FRC79/CK_16/commit/f221e6055fbca21929abe91de3cec1dbf4622453

Why did you recreate this file rather than modifying the previous one?

schreiaj commented 11 years ago

Additionally, please fix the following errors

C:/WindRiver/workspace/BuiltinDefaultCode/CK16_Main.cpp:4:32: RobotConfiguration.h: No such file or directory
C:/WindRiver/workspace/BuiltinDefaultCode/CK16_Main.cpp:8:33: CAN_VPID_Controller.h: No such file or directory
In file included from C:/WindRiver/workspace/BuiltinDefaultCode/CK16_Main.cpp:9:
C:/WindRiver/workspace/BuiltinDefaultCode/CK16_Auton.h:4:26: BallConveyor.h: No such file or directory
C:/WindRiver/workspace/BuiltinDefaultCode/CK16_Auton.h:7:23: CSVReader.h: No such file or directory
In file included from C:/WindRiver/workspace/BuiltinDefaultCode/CK16_Main.cpp:9:
C:/WindRiver/workspace/BuiltinDefaultCode/CK16_Auton.h:13: error: ISO C++ forbids declaration of `CSVReader' with no type
C:/WindRiver/workspace/BuiltinDefaultCode/CK16_Auton.h:13: error: expected `;' before '*' token
C:/WindRiver/workspace/BuiltinDefaultCode/CK16_Auton.h:15: error: `CSVReader' has not been declared
C:/WindRiver/workspace/BuiltinDefaultCode/CK16_Auton.h:15: error: ISO C++ forbids declaration of `CK15_Auton' with no type
C:/WindRiver/workspace/BuiltinDefaultCode/CK16_Auton.h:15: error: ISO C++ forbids declaration of `m_csv' with no type
C:/WindRiver/workspace/BuiltinDefaultCode/CK16_Main.cpp:49: error: ISO C++ forbids declaration of `CSVReader' with no type
C:/WindRiver/workspace/BuiltinDefaultCode/CK16_Main.cpp:49: error: expected `;' before '*' token
C:/WindRiver/workspace/BuiltinDefaultCode/CK16_Main.cpp: In constructor `CK16_Main::CK16_Main()':
C:/WindRiver/workspace/BuiltinDefaultCode/CK16_Main.cpp:63: error: `m_config' undeclared (first use this function)
C:/WindRiver/workspace/BuiltinDefaultCode/CK16_Main.cpp:63: error: (Each undeclared identifier is reported only once for each function it appears in.)
C:/WindRiver/workspace/BuiltinDefaultCode/CK16_Main.cpp:63: error: `CSVReader' has not been declared
C:/WindRiver/workspace/BuiltinDefaultCode/CK16_Main.cpp:66: error: `RobotConfiguration' has not been declared
C:/WindRiver/workspace/BuiltinDefaultCode/CK16_Main.cpp:66: error: `FR_CAN_ID' undeclared (first use this function)
C:/WindRiver/workspace/BuiltinDefaultCode/CK16_Main.cpp:67: error: `RobotConfiguration' has not been declared
C:/WindRiver/workspace/BuiltinDefaultCode/CK16_Main.cpp:67: error: `FL_CAN_ID' undeclared (first use this function)
C:/WindRiver/workspace/BuiltinDefaultCode/CK16_Main.cpp:68: error: `RobotConfiguration' has not been declared
C:/WindRiver/workspace/BuiltinDefaultCode/CK16_Main.cpp:68: error: `RR_CAN_ID' undeclared (first use this function)
C:/WindRiver/workspace/BuiltinDefaultCode/CK16_Main.cpp:69: error: `RobotConfiguration' has not been declared
C:/WindRiver/workspace/BuiltinDefaultCode/CK16_Main.cpp:69: error: `RL_CAN_ID' undeclared (first use this function)
C:/WindRiver/workspace/BuiltinDefaultCode/CK16_Main.cpp:87: error: `auton' undeclared (first use this function)
C:/WindRiver/workspace/BuiltinDefaultCode/CK16_Main.cpp:87: error: new initializer expression list treated as compound expression
C:/WindRiver/workspace/BuiltinDefaultCode/CK16_Main.cpp:87: warning: left-hand operand of comma has no effect
C:/WindRiver/workspace/BuiltinDefaultCode/CK16_Main.cpp:87: warning: right-hand operand of comma has no effect
C:/WindRiver/workspace/BuiltinDefaultCode/CK16_Main.cpp:87: warning: right-hand operand of comma has no effect
C:/WindRiver/workspace/BuiltinDefaultCode/CK16_Main.cpp: In member function `virtual void CK16_Main::AutonomousInit()':
C:/WindRiver/workspace/BuiltinDefaultCode/CK16_Main.cpp:118: error: `auton' undeclared (first use this function)
C:/WindRiver/workspace/BuiltinDefaultCode/CK16_Main.cpp: In member function `virtual void CK16_Main::TeleopInit()':
C:/WindRiver/workspace/BuiltinDefaultCode/CK16_Main.cpp:127: error: `m_config' undeclared (first use this function)
C:/WindRiver/workspace/BuiltinDefaultCode/CK16_Main.cpp: In member function `virtual void CK16_Main::DisabledPeriodic()':
C:/WindRiver/workspace/BuiltinDefaultCode/CK16_Main.cpp:143: error: `auton' undeclared (first use this function)
C:/WindRiver/workspace/BuiltinDefaultCode/CK16_Main.cpp: In member function `virtual void CK16_Main::AutonomousPeriodic()':
C:/WindRiver/workspace/BuiltinDefaultCode/CK16_Main.cpp:158: error: `auton' undeclared (first use this function)
C:/WindRiver/workspace/BuiltinDefaultCode/CK16_Main.cpp:161: error: expected primary-expression before '->' token
C:/WindRiver/workspace/BuiltinDefaultCode/CK16_Main.cpp:161: error: `Pressure_SW' undeclared (first use this function)
C:\WindRiver\vxworks-6.3\host\x86-win32\bin\make.exe: *** [BuiltinDefaultCode_partialImage/Debug/Objects/BuiltinDefaultCode/CK16_Main.o] Error 1
Shaqerman commented 11 years ago

We did modify the old one

--shea--

--- Original Message ---

From: Andrew Schreiber notifications@github.com Sent: January 8, 2013 1/8/13 To: "FRC79/CK_16" CK_16@noreply.github.com Cc: Shaqerman shaqerman@gmail.com Subject: [CK_16] Multiple Definitions of START_ROBOT_CLASS(X) (#12)

f221e60

Why did you recreate this file rather than modifying the previous one?

— Reply to this email directly or view it on GitHub.

schreiaj commented 11 years ago

Then why is this here?

schreiaj commented 11 years ago

Ok, I get it. You modified CK_15 Main.cpp The file I was referencing was BuiltInDefaultCode.cpp If you do a find and replace on BuiltInDefaultCode and replace it with CK_16 it should compile. We can add in the rest of the stuff from CK_15 Main as we develop it. I'll work with you tonight and we'll get this all working.

In the future please commit stuff like this to a branch and then push that branch. That way other people can get to it but master is always good to be built and deployed.