I've got a makefile that creates a library of object files using "ar r mylib.a myobj1.o myobj2.o" etc.
Then I link with "gcc main.o mylib.a -o myexe" and I get the error above.
Clear the error is complete garbage - it's complaining that I'm attempting to link with the architecture I've built for which is what you're supposed to do this isn't an error anyway!
If I link directly with the object files it all works fine, so those objects are OK as is everything else.
Something about putting them in a static library seems to hit a bug in ld therefore - evidenced by the garbage error message.
The only other example I've found of this on google was 'fixed' by the poster using a more up-to-date version of the application he was compiling, so no help in what was the cause nor fix for the error.
Anyone else come across this? Any thoughts on how to debug it further?
Thanks.