Showing posts with label symbol. Show all posts
Showing posts with label symbol. Show all posts

Wednesday, March 11, 2015

Missing socket libraries in build














make clean; make all
rm -f *.o *~ core
g++ -c -o l.o l.cpp -I.
g++ -Wno-invalid-offsetof -Wall -Werror -Wextra -Winit-self -Woverloaded-virtual -Winit-self -ansi -pedantic -Wstrict-aliasing -Wno-unknown-pragmas -Wno-sign-compare -Wno-parentheses -Wno-write-strings  -O3 -ggdb3 -Wformat -Wuninitialized  -o la l.cpp -I.
Undefined                       first referenced
 symbol                             in file
inet_pton                           /var/tmp//ccYiZabf.o
inet_ntop                           /var/tmp//ccYiZabf.o
ld: fatal: Symbol referencing errors. No output written to la
collect2: ld returned 1 exit status
make: *** [all] Error 1
[xviengu@vnaps1 xviengu/ws/network]$


Friday, September 19, 2014

List symbols in binary







  nm m1.so
  readelf -s m1.so
  objdump -t m1.so




Labels