[llvm-dev] "Export ordinal too large" when linking LLVM.dll with MinGW64

Cosmin Apreutesei via llvm-dev llvm-dev at lists.llvm.org
Sat Jun 22 02:19:52 PDT 2019


Update: looks like the the problem was that the cmake script in
tools/llvm-shlib was set to export all symbols instead of just the C
symbols, and those are way too many (max is 65535).

Changing tools\llvm-shlib\simple_version_script.map.in to read "LLVM_8
{ global: LLVM*; local: *; };" fixed it for me and now I have a dll.


More information about the llvm-dev mailing list