linkage type

What is the difference between WeakAnyLinkage and ExternalWeakLinkage
? They are defined in GlobalValue.h. Thanks

Junjie

There is a description of all the possible linkage types at http://llvm.org/docs/LangRef.html#linkage – does this answer your question? (Basically, an extern_weak resp. ExternalWeakLinkage symbol becomes null instead of being an undefined reference)

David

Well, I was trying to know what in source gets to be translated to
WeakAnyLinkage or ExternalWeakLinkage.
I recently had a problem related to weak linkage handling in llvm on
WIndows 7. Here is the problem. I have
two files: m.c and foo.c

m.c