Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 807
qeek Avatar asked Mar 24 '09 16:03

qeek


1 Answers

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.

like image 151
Ben Avatar answered Oct 02 '22 01:10

Ben