Linking g++ compiled object files

Mike Parker via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Nov 24 14:29:04 PST 2016


On Thursday, 24 November 2016 at 20:09:29 UTC, Rubikoid wrote:
> So, is there any way to use gcc/g++ under windows?


DMD can work with COFF objects when given -m32mscoff when 
compiling 32-bit and -m64 for 64-bit. In both cases, yoi will 
need the Microsoft linker and SDK intalled. However, when linking 
with GCC-compiled objects from MinGW or Cygwin, any use of the C 
standard library in those objects is bound to cause linker 
errors. With C++, there's also the issue of name mangling. I 
don't know if GCC's and Microsoft's are compatible.



More information about the Digitalmars-d-learn mailing list