https://sourceware.org/bugzilla/show_bug.cgi?id=30140
Martin Storsjö <martin at martin dot st> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |martin at martin dot st --- Comment #2 from Martin Storsjö <martin at martin dot st> --- > I think that this is an issue in LD because it should be able to handle DEF > file > correctly. Or if LD does not support DEF files then it should throw > meaningful human > readable error. Not that "symbol not defined" because it *is* defined in > test-library.def file. The issue is that LD _does_ take DEF files as input - but not in the way you seem to assume. When you link a DLL (or EXE for that matter) and pass it a DEF file at the same time, the DEF file overrides what symbols to export, instead of the regular logic (functions marked dllexport, or exporting everything modulo explicit ignores, etc). See the section in the manual: https://sourceware.org/binutils/docs/ld/WIN32.html#index-using-a-DEF-file -- You are receiving this mail because: You are on the CC list for the bug.