What is going on here? I can't seem to build with gcc. How can I fix this.
Jun 14, 2014 Undefined symbols for architecture x8664: 'res9init', referenced from: switchns in ccTLCqYq.o. Ld: symbol(s) not found for architecture x8664. Collect2: error: ld returned 1 exit status. Mbp-mbp 09:26:14 /bin $ gcc -v. Using built-in specs. C - Undefined symbols for architecture x8664, linker issues on Yosemite with OpenCV; c - Why is OSX skipping symbols during linking - Undefined symbols for architecture x8664; Poco C library on OSX 10.8.2: Undefined symbols for architecture x8664; c - Undefined symbols for architecture x8664: Eclipse Mac OSX.
mbp-mbp 09:24:18 ~/bin $ gcc connect.c -o connect
Undefined symbols for architecture x86_64:
'_res_9_init', referenced from:
_switch_ns in ccTLCqYq.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
mbp-mbp 09:26:14 ~/bin $ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/Cellar/gcc/4.8.3/libexec/gcc/x86_64-apple-darwin1 3.2.0/4.8.3/lto-wrapper
Target: x86_64-apple-darwin13.2.0
Configured with: ../configure --build=x86_64-apple-darwin13.2.0 --prefix=/usr/local/Cellar/gcc/4.8.3 --enable-languages=c,c++,objc,obj-c++,fortran --with-gmp=/usr/local/opt/gmp --with-mpfr=/usr/local/opt/mpfr --with-mpc=/usr/local/opt/libmpc --with-cloog=/usr/local/opt/cloog --with-isl=/usr/local/opt/isl --with-system-zlib --enable-version-specific-runtime-libs --enable-libstdcxx-time=yes --enable-stage1-checking --enable-checking=release --enable-lto --disable-werror --enable-plugin --disable-nls --enable-multilib
Thread model: posix
gcc version 4.8.3 (GCC)
5.1.1 xcode nad command line tools
OSX 10.9.3
Macos Caffe Undefined Symbols For Architecture X86_64 Cv Imencode 2
Macos Caffe Undefined Symbols For Architecture X86_64 Cv Imencode Pdf
Cheers
Macos Caffe Undefined Symbols For Architecture X86_64 Cv Imencode Key
Posted on