Go to Post Skill in software engineering is all about algorithmic understanding and intuition. Implemenation is an important, but ultimately secondary, concern. Programming languages are more or less arbitrary. - phrontist [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

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-23-2016, 10:35 PM
kadenu kadenu is offline
Registered User
FRC #3941
 
Join Date: Jan 2016
Location: Maryland
Posts: 2
kadenu is an unknown quantity at this point
FRC Toolchain 2016 on Manjaro (Arch) Linux

I can't seem to get the FRC Toolchain working on my Linux computer. When I try to compile a small test program, like so:
Code:
arm-frc-linux-gnueabi-g++ -std=c++14 Robot.cpp
I get a set of errors like "/tmp/ccvh58IH.o:Robot.cpp:function .LTHUNK10: error: undefined reference to 'vtable for RobotDrive'". This is repeated for just about each WPILib class I used, such as SampleRobot, Joystick, RobotBase, etc.

Is the linker just not finding the right library files? I've checked, and the files do exist in "/usr/arm-frc-linux-gnueabi/lib". I've also tried using:
Code:
arm-frc-linux-gnueabi-g++ -std=c++14 Robot.cpp -I /usr/arm-frc-linux-gnueabi/include/ -L /usr/arm-frc-linux-gnueabi/lib/
That returns the same errors.

Any ideas what I'm doing wrong, or how I can fix this?
Reply With Quote
  #2   Spotlight this post!  
Unread 01-24-2016, 07:10 AM
fsilberberg fsilberberg is offline
WPILib Developer
AKA: Fred Silberberg
FRC #0190
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Redmond
Posts: 146
fsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura about
It looks like you're not compiling with wpilib. Make sure you link against the wpilib library, which you get by installing the plugins.
Reply With Quote
  #3   Spotlight this post!  
Unread 01-24-2016, 08:24 AM
demosthenes2k8's Avatar
demosthenes2k8 demosthenes2k8 is offline
Graduated but not gone
AKA: Matt Soucy
FRC #0166 (Chop Shop 166)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Merrimack, NH
Posts: 588
demosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to behold
Send a message via AIM to demosthenes2k8 Send a message via Yahoo to demosthenes2k8
You'll probably need to specify -lwpilib
__________________


GSR Dean's List Finalist 2011
Reply With Quote
  #4   Spotlight this post!  
Unread 01-25-2016, 12:21 PM
kadenu kadenu is offline
Registered User
FRC #3941
 
Join Date: Jan 2016
Location: Maryland
Posts: 2
kadenu is an unknown quantity at this point
Re: FRC Toolchain 2016 on Manjaro (Arch) Linux

Heh... whoops. I realized what my problem was shortly after posting this (what I actually need is "-lwpi") but didn't have time until now to reply. Thanks for the help, though!
Reply With Quote
Reply


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 09:14 AM.

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