bash-3.2$ gcc -Llibavcodec -Llibavdevice -Llibavfilter -Llibavformat -Llibavresample -Llibavutil -Llibpostproc -Llibswscale -Llibswresample -Wl,-dynamic,-search_paths_first -o ffmpeg_g ffmpeg_opt.o ffmpeg_filter.o ffmpeg.o cmdutils.o -lavdevice -lavfilter -lavformat -lavcodec -lpostproc -lswresample -lswscale -lavutil -Wl,-framework,Cocoa -L/opt/local/lib -lSDLmain -lSDL -lm -liconv -lbz2 -lz -Wl,-v collect2 version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00) (i686 Darwin) /usr/llvm-gcc-4.2/bin/../libexec/gcc/i686-apple-darwin10/4.2.1/ld -dynamic -arch x86_64 -macosx_version_min 10.6.8 -weak_reference_mismatches non-weak -o ffmpeg_g -lcrt1.10.6.o -Llibavcodec -Llibavdevice -Llibavfilter -Llibavformat -Llibavresample -Llibavutil -Llibpostproc -Llibswscale -Llibswresample -L/opt/local/lib -L/usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin10/4.2.1/x86_64 -L/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin10/4.2.1/x86_64 -L/usr/lib/gcc/i686-apple-darwin10/4.2.1/x86_64 -L/usr/lib/i686-apple-darwin10/4.2.1 -L/usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin10/4.2.1 -L/usr/llvm-gcc-4.2/bin/../lib/gcc -L/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin10/4.2.1 -L/usr/lib/gcc/i686-apple-darwin10/4.2.1 -L/usr/llvm-gcc-4.2/bin/../lib/gcc/i686-apple-darwin10/4.2.1/../../.. -L/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin10/4.2.1/../../.. -dynamic -search_paths_first ffmpeg_opt.o ffmpeg_filter.o ffmpeg.o cmdutils.o -lavdevice -lavfilter -lavformat -lavcodec -lpostproc -lswresample -lswscale -lavutil -framework Cocoa -lSDLmain -lSDL -lm -liconv -lbz2 -lz -v -lSystem -lgcc -lSystem ld: warning: directory not found for option '-Llibavresample' @(#)PROGRAM:ld PROJECT:ld64-127.2 Library search paths: libavcodec libavdevice libavfilter libavformat libavutil libpostproc libswscale libswresample /opt/local/lib /usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin10/4.2.1/x86_64 /Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin10/4.2.1/x86_64 /usr/lib/gcc/i686-apple-darwin10/4.2.1/x86_64 /usr/lib/i686-apple-darwin10/4.2.1 /usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin10/4.2.1 /usr/llvm-gcc-4.2/lib/gcc /Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin10/4.2.1 /usr/lib/gcc/i686-apple-darwin10/4.2.1 /usr/llvm-gcc-4.2/lib /Developer/usr/llvm-gcc-4.2/lib /usr/lib /usr/local/lib Framework search paths: /Library/Frameworks/ /System/Library/Frameworks/ Undefined symbols for architecture x86_64: "_iconv_open", referenced from: _avcodec_decode_subtitle2 in libavcodec.a(utils.o) "_iconv", referenced from: _avcodec_decode_subtitle2 in libavcodec.a(utils.o) "_iconv_close", referenced from: _avcodec_decode_subtitle2 in libavcodec.a(utils.o) ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status