View Single Post
  #1   Spotlight this post!  
Unread 12-01-2017, 17:09
CSkillet CSkillet is offline
Registered User
FRC #0135
 
Join Date: Jan 2016
Location: Indiana
Posts: 11
CSkillet is an unknown quantity at this point
Undefined Reference to CANTalon::CANTalon(int)

Hello,
I have been having an issue creating a pointer of the CANTalon class in Eclipse C++. I am aware that there is a CTRE Toolsuite (currently v4.4.1.8), and have downloaded and installed it. I made sure that the class files are in the correct location on my computer. There is no error in including the CANTalon class in the .h file of the subsystem I'm using.

I created the pointer according to WPI Lib Screensteps, and Eclipse comes up with the error "Undefined Reference to CANTalon::CANTalon(int)." In the .h, I put CANTalon* shooterMotor; and in the .cpp I put shooterMotor = new CANTalon(11); . When I type the code in the .cpp, the "helper" points out that I should input an integer for a parameter, but after building, it comes up with this error.

I have tried many variations of creating a pointer of CANTalon but all with no luck. I have also tried on two different computers, both with the same errors. I was wondering if maybe there was a problem with the Toolsuite itself, but obviously if no one else has posted a problem about this, then there's not.

Any help is appreciated.

Conner
Reply With Quote