I found a way to allow multiple symbol definitions in a static library assembled from a bunch of object (.o) files. The secret sauce is adding “-z muldefs” to the g++ command line. I’m not sure what it tickles in the linker but it made my pains go away. One of these days I’ll spend a weekend playing with “ld” to see what other magic I can come up with.
Published by Cliff
A Java software developer, working professionally in programming for over 13 years, I am skilled in various technologies including ObjC, Java, SQL, XML/XSL, scripting languages and more. With a certain passion for developing I love to mix humor with programming. View all posts by Cliff