|
Re: CANTalon C++ examples not compiling
Quote:
Originally Posted by taichichuan
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)
|