2010/5/20 Ian Lance Taylor <
ia...@google.com>:
I think that would be a difficult condition to check. The patch might
be to state "Are you using the "C" package?" (or probably something
else more descriptive) in that error message, but the only reason gcc
didn't generate output is because the warning/error stub file that was
created had no symbols since C.foo wasn't used.
I imagine a broken gcc is less likely than this error /
misunderstanding. I guess one way to detect this error would be to
find import "C" without any corresponding symbols in any of the maps
that cgo uses.
I'll send a patch momentarily.
--dho
> Ian
>