Linker weirdness: "could not read symbols: Invalid operation"

Roland McGrath roland at redhat.com
Mon Mar 15 23:22:11 UTC 2010


> Also, the "undefined reference to symbol" error is typical for the 'you
> left it out of the linker line' situation, but "could not read symbols:
> Invalid operation" is not, I've never seen that error before.

This and several other odd-looking things are "normal" cascade errors from
an undefined symbol in various circumstances.  If there are other error
messages first, don't worry about the incomprehensible ones until you've
resolved the earlier ones.

> Um. As I said in my email, it's already *in* the linker line. That's why
> I say it's weird.

Show the linking command line in question.  (As with all requests for help,
showing the complete command line and all error messages in the very first
report is always the best policy.)

It's possible to have this problem by having the libraries in the wrong
order relative to each other or to .o files that refer to them.


Thanks,
Roland


More information about the devel mailing list