Go to Post Jon is very right, going forward I have a hard time envisioning any future Championship Chairman's award winners without a significant social media presence. It's just too big of an avenue to be ignored. - Karthik [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-13-2016, 06:41 PM
rsaccone rsaccone is offline
Registered User
FRC #3950
 
Join Date: Feb 2013
Location: Glen Head, NY
Posts: 23
rsaccone is an unknown quantity at this point
What should C++ Include and Lib Settings Be for building Robot code?

Hello,

After following the instructions in screen steps (multiple times) and encountering no errors during the setup I am running into errors related to not having include (and possible) lib environment settings set up correctly. I have generated a sample project and am getting errors complaining that Symbols that can't be resolved. These symbols included WPILIB symbols, symbols in my own code, and C++ std runtime symbols. I fixed the WPILIB symbols by defining a WPILIB environment variable in the C/C++ Build -> Environment dialog for my project. However I am still left with C++ std:: symbols and some symbols in my project (like CommandBase when looking and ExampleCommand.h). These errors are concerning because I think the screen step setup should ensure these are already defined.

Can someone please share with me the entire set of Environment variables needed for compiling and linking so I can ensure that everything is correct? I have attached a screen shot of the errors for reference


Thanks,
Rob Saccone
Software Mentor Team 3950

Last edited by rsaccone : 01-13-2016 at 06:46 PM. Reason: Add attachment
Reply With Quote
  #2   Spotlight this post!  
Unread 01-13-2016, 06:47 PM
rsaccone rsaccone is offline
Registered User
FRC #3950
 
Join Date: Feb 2013
Location: Glen Head, NY
Posts: 23
rsaccone is an unknown quantity at this point
Re: What should C++ Include and Lib Settings Be for building Robot code?

OK I tried to add a picture but for some reason it won't upload. The unresolved symbols are around things like:

#include <string> - Can't find include

std::unique_ptr
std::string

etc...
Reply With Quote
  #3   Spotlight this post!  
Unread 01-14-2016, 07:40 AM
euhlmann's Avatar
euhlmann euhlmann is offline
CTO, Programmer
AKA: Erik Uhlmann
FRC #2877 (LigerBots)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2015
Location: United States
Posts: 298
euhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud of
Re: What should C++ Include and Lib Settings Be for building Robot code?

If c++ standard library symbols can't be resolved (especially NULL) it's probably because your C++ index needs to be rebuilt. Right click the project > index > rebuild.

Otherwise check your include paths and make sure you have the include directory from the FRC c++ toolchain (somewhere in C:\frc on Windows)
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:13 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