View Single Post
  #4   Spotlight this post!  
Unread 02-03-2013, 15:18
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
Re: How to detect unresolved references at compile time?

Quote:
Originally Posted by codes02 View Post
A bunch of stuff
Thanks, this helped a lot!

I couldn't find the powerpc-wrs-vxworks-readelf program on Linux, but I did discover that the FRC_UserProgram.out file is actually a readable text file, so I could search for the undefined symbols directly from it.

In case anybody else has the same problem as I did, I wrote up a quick Python script to find the undefined symbols from it. (see attached). It should be cross-platform, and should work on at least Python 2.7 and probably Python 3.x.

It's not quite compile time, but it worked for me.
Attached Files
File Type: zip find_missing_symbols.zip (3.2 KB, 5 views)
Reply With Quote