Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 17th, 2012  |  syntax: None  |  size: 0.33 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. linking static library instead of dynamic
  2. EXE: OBJ.o
  3.      g++ -L/PATH/TO/FOO -o $@ $< -static -lX
  4.        
  5. /usr/bin/ld: cannot find -lstdc++
  6. /usr/bin/ld: cannot find -lm
  7. /usr/bin/ld: cannot find -lc
  8.        
  9. EXE: OBJ.o
  10.      g++ -L/PATH/TO/FOO -o $@ $< -Wl,-Bstatic -lX -Wl,-Bdynamic
  11.        
  12. EXE: OBJ.o
  13.      g++ -L/PATH/TO/FOO -o $@ $< -l:X.a