R – Linker warnings/errors after Snow Leopard Upgrade

g++linkerosx-snow-leopard

I have 3rd party libraries for my mac applications which used to link nicely to my application with the previous version of Mac OS X.

I have upgraded to Snow Leopard and now g++ linker complains:

ld: warning: in /Users/paul/Projects/3rdPath/NHUI/Lib/mac32/libNHUI.a, file is not of required architecture

The link also fails to locate functions from this library.

Do I need Snow Leopard versions of each 3rd party library or can I provide some compiler/link switch which could allow me to build like I did in the previous Mac OS X version.

Thank you,

Paul

Best Answer

I don't even own a Mac so feel free to disregard this, but your path has "mac32" in it, which suggests to me that it's a 32 bit library. "architecture" in computers usually refers to 32/64 bit CPU architectures, and I've heard that Snow Leopard has a big emphasis on migrating to 64 bit apps. As such, my first blush impression is that you are using a 32 bit library which Snow Leopard is warning you away from.

Hope that helps you get going in the right direction!