Go to Post Life isn't a set track: you have to go out and make your own path. - Greg Marra [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 02-20-2013, 05:23 PM
Michael_Lee Michael_Lee is offline
Registered User
FRC #2976
 
Join Date: Jan 2012
Location: Issaquah, WA
Posts: 21
Michael_Lee is an unknown quantity at this point
How to detect unresolved references at compile time?

Sometimes, when I try running the code on the robot, it refuses to transfer over during debug mode because of "unresolved references". It then displays a popup containing the semi-garbled names of various functions or classes that I placed in my header files but forgot to actually write in the corresponding .cpp file.

It's relatively easy to catch them at this stage, but is there some way to catch these errors at compile time? It's frustrating to have to wait until I'm next to a cRIO so I can catch these sorts of mistakes, instead of being able to detect them at home while coding.

I did find a Stack Overflow thread which listed a few compiler flags which should be able to do what I want, but I couldn't figure out how to apply them to my WindRiver project.

Help?
Reply With Quote
 


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:52 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