2012/1/6 Manu <[email protected]>: > Okay, so I was trying to link to a C lib, and I realised... DMD doesn't > support/produce VS compatible libs. > I should have realised this sooner, noting the cv debuginfo. > > So like... WTF? > > How am I supposed to use DMD in Windows in anything other than trivial, > self-contained programs? > VisualC is the de facto standard in Windows. All libs are COFF, and (unless > I'm working with GCC) everything I want to link to is produced from VC. > > Let's also mention the debug info... Virtually every 3rd party tool assumes > and/or works best with PDB debug info. Being required to run cv2pdb is > pretty lame. > > So... why no support for COFF libs, and PDB debug info? > Surely at least a compiler option would do the business if there is some > kinky attachment to CV and OMF :/ > > I was hoping to start a project using D as a front end language interacting > with my C/C++ engine lib... but I can't. > ... and now that I think if it... how do ANY programs built with DMD > actually work? .. How does it link to system32.lib, user32.lib, etc?
There's a COFF 2 OMF tool somewhere on digitalmars.com. Don't know how good it is though, and can't say anything about reverse conversion.
