Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

While linking libavcodec.a , I see these errors:

/usr/bin/ld: /usr/local/lib/libavcodec.a(fft_mmx.o): relocation R_X86_64_PC32 against symbol `ff_cos_32' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value

Note: ffmpeg was configured with --enable-pic option

My system is ubuntu 11.04 64 bit.

Any pointers regarding this would be helpful.

share|improve this question

You're linking 64-bit code against 32-bit code. Use the same arch when building all the object files.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.