What should I do if two libraries provide a function with the same name generating a conflict?

qeek picture qeek · Mar 24, 2009 · Viewed 47.3k times · Source

What should I do if I have two libraries that provide functions with equivalent names?

Answer

Ben picture Ben · Mar 24, 2009

It is possible to rename symbols in an object file using objcopy --redefine-sym old=new file (see man objcopy).

Then just call the functions using their new names and link with the new object file.