Go to Post And Dave...should I borrow someone's hair dryer from here in case the NASA truck needs some de-icing again this year? - Billfred [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 13:31.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi