A link error means that there is a line of code that is making reference to a symbol (it can be a variable, or function, etc), that has not been defined. In this case, it looks like you are missing four functions. You are probably not linking in the object file that contains these symbols. So do a search in your code (in the .c or .cpp files) for "mpeg2_cpu_state_init", for example (the leading underscore is added by the compiler). Then pass that to the libtool line that you had below. Make sense?