Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Technical Discussion (http://www.chiefdelphi.com/forums/forumdisplay.php?f=22)
-   -   CANTalon C++ examples not compiling (http://www.chiefdelphi.com/forums/showthread.php?t=154019)

taichichuan 21-01-2017 11:34

CANTalon C++ examples not compiling
 
Greetings!

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.

Any clues as to what I'm doing wrong?

TIA,

Mike

Peter Johnson 21-01-2017 12:14

Re: CANTalon C++ examples not compiling
 
Quote:

Originally Posted by taichichuan (Post 1634391)
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?

taichichuan 21-01-2017 12:47

Re: CANTalon C++ examples not compiling
 
Quote:

Originally Posted by Peter Johnson (Post 1634410)
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?

Greetings!

OK, I shut eclipse down and updated to the latest Java. started eclipse back up and it seems to be working now. :-) Using the neon.2 release of Eclipse with the latest WPILib version and Java V8 update 121. But, you've got to wipe out any old prolects and start clean because the old projects don't have the search paths set correctly.

Is there an easy way to update old project build specs without having to delete them?

Thanks for your help,

Mike


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

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