View Single Post
  #1   Spotlight this post!  
Unread 21-01-2017, 12:14
Peter Johnson Peter Johnson is offline
WPILib Developer
FRC #0294 (Beach Cities Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Redondo Beach, CA
Posts: 269
Peter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud of
Re: CANTalon C++ examples not compiling

Quote:
Originally Posted by taichichuan View Post
Has anyone had any luck in getting the CTRE C++ examples to compile and link? I ran the latest installer from CTRE and it puts the includes and library off in ${WPILIB}/user/cpp/ which doesn't appear to be in the search path. By adjusting the build paths, I got the includes in place. But, the library isn't being found and I get a bunch of undefined symbols during the link.
The libraries and include paths should be automatically getting updated by the plugins to point to the correct ${HOME}/wpilib/user/cpp folders (for includes) and files (for libraries) at Eclipse startup. Are the CTRE files actually installed in C:/Users/<your name>/wpilib/user/cpp/include and .../lib? There is a possible issue with the installer at present where if privileges are escalated (e.g. you're running as a normal user and need to type in an admin username/password) during install, the files will be installed into the admin user's wpilib directly instead of the user you're running the installer as.

Can you take a screenshot of the Includes section of your project?
__________________
Author of cscore - WPILib CameraServer for 2017+
Author of ntcore - WPILib NetworkTables for 2016+
Creator of RobotPy - Python for FRC

2010 FRC World Champions (294, 67, 177)
2007 FTC World Champions (30, 74, 23)
2001 FRC National Champions (71, 294, 125, 365, 279)
Reply With Quote