Skip to content

Commit

Permalink
Added a script to make reporting of missing link-time symbols more cl…
Browse files Browse the repository at this point in the history
…ear.
  • Loading branch information
icculus committed Feb 19, 2016
1 parent a8f814a commit a7f69be
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions undefined.sh
@@ -0,0 +1,9 @@
#!/bin/bash

# Pipe GCC output through this to just get a simple list of missing symbols,
# minus spam, at link time:
#
# gcc -o blah *.o 2>&1 |undefined.sh

grep " undefined reference to " |perl -w -p -e 's/\A.*? undefined reference to .//; s/.\Z//;' |sort |uniq

0 comments on commit a7f69be

Please sign in to comment.