-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C++ Seemingly not linking in Eclipse Neon with WPILib for 2017 #6
Comments
Are you using the 2017 Plugins? |
Indeed I am |
Try putting the pathfinder libraries in |
I'm using cpp, but putting the includes and library under the cpp section of the wpilib folder (where the third party libraries are) results in no change. |
I've found the issue. It turns out WPILib doesn't link |
Head to the releases and download the C++ fix, export this into your |
Great! I'll try it out tomorrow and report back |
Did you get this working? We are having problems linking the .so following the instructions in the wiki. |
Working with @Sloth7 on this. The .so file in the most recent release is only 27KB. Is this correct? It seems small. |
My team has been working on getting this integrated to a 2017 C++ Command Base project and have been running into the same issue. I believe the issue is due to name mangling between C and C++. I have pulled in both the most recent release with the .so and the previous release with the .a binaries at different times. Both seem to work just fine as far as compiling goes. CTRE, SF2, etc. all seem to have .a binaries and can be pulled in just fine. Thoughts? |
@CaptainGeneric Pathfinder is designed to be a C library, that can be imported into C++ projects. Does it build successfully if, in your robot program, you use extern "C" #include "pathfinder.h" instead of #include "pathfinder.h" |
Yeah, I wasn't a fan of modifying the header file to get the project to compile. That's definitely not the resolution. I did try your suggestion (and a few other things) and didn't have any luck by changing the way the robot project includes the library. I'll try to pick this back up tomorrow to see if I can figure out anything else. Let me know if you have any other ideas. I would be happy to give them a shot. |
Hmm, if adding |
There's now a fix up that allows Pathfinder to be included with WPILib C++ projects. Get the release here and extract it to |
@JacisNonsense The latest release you provided works great and we can now link. |
Hi!
This library looks exactly like what I've been looking for, my only issue is that it doesn't appear to link in eclipse neon.
My project outputs the errors of
I'm pretty sure I'm linking it correctly, the lib folder is in my search paths for libraries, and the pathfinder library is on the top of my list.
Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: