jmeubank / tdm-gcc

TDM-GCC is a cleverly disguised GCC compiler for Windows!
https://jmeubank.github.io/tdm-gcc/
572 stars 49 forks source link

DLL debug build with too many symbols #42

Open numeredev opened 2 years ago

numeredev commented 2 years ago

Hello @jmeubank,

yesterday I tried to compile ProjectChrono with TDM-GCC 9.2.0 (x86) and succeeded with some minor adaptions (changing VCC-specific code, etc.). However, I experienced crashes in collision-related simulations, therefore I wanted a debug build of this library. Now comes the interesting thing: suddenly the linker fails while complaining about "error: export ordinal too large: 125663".

How is it possible that the created code results in that many symbols? Is there a compiler option to reduce this number? (Probably -Og?) BTW: the archive, which is input to the linker, has about 1.3 GB compared to 41 MB in release mode.