Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

An objcopy equivalent for Windows? (Hack for clashing lib symbols)

I'm looking for a Windows equivalent of the GNU tool objcopy. I'm looking to implement the suggestion posted here to my problem, however I need to do it cross-platform (Windows, Linux and Mac). I couldn't find the answer on my google friend, so perhaps the solution needs to be implemented differently. Thank you!

like image 572
Deathicon Avatar asked Nov 18 '13 16:11

Deathicon


1 Answers

Part of the default MSVC tooling: LIB /EXTRACT extracts a copy of an object; LIB /REMOVE then removes it from the library.

I think LIB /DEF /EXPORT:externalName=internalName also would be beneficial to you, when you put the object file back in.

like image 69
MSalters Avatar answered Nov 08 '22 20:11

MSalters