digitalmars.D - DxErr.lib
- Sascha Katzner (7/12) Nov 06 2007 It seems it implements at least:
- Jascha Wetzel (3/10) Nov 06 2007 but since it seems to define functions, you can try coff2omf instead.
- Sascha Katzner (6/8) Nov 06 2007 There is no DxErr.dll, the code for the mentioned 3 functions is only in...
- Leo Walkling (3/16) Nov 06 2007 Using coff2omf, you first have to convert it to the old COFF, Microsoft'...
- Sascha Katzner (4/8) Nov 07 2007 Just tried that too and it has no effect, the resulting lib from
- Jascha Wetzel (4/14) Nov 07 2007 i once had problems finding the correct linker version for this. i'm not...
- Sascha Katzner (2/5) Nov 07 2007 That is the one from VS6.
- Sascha Katzner (2/4) Nov 06 2007 argh! COFF, not OMF! ;-)
- Bill Baxter (4/9) Nov 06 2007 I believe Walter said before that if he did rewrite OPTLINK (a *big* if)...
- Sascha Katzner (17/20) Nov 06 2007 The question is, if this would be wise for the future of D. I suppose
- Jarrett Billingsley (7/17) Nov 06 2007 If all you need is DXGetErrorDescription, don't bother, it's kind of
- Sascha Katzner (3/8) Nov 07 2007 I hoped to go the official way, since every time the file gets updated
- dickl (4/18) Nov 06 2007 I have an OMF version of dxerr8.lib. Wish I could remember how I made
- Sascha Katzner (3/5) Nov 07 2007 Thanks, but I need dxerr.lib (without a number at the end). It's for
- Walter Bright (3/5) Nov 07 2007 I'd love to rewrite Optlink. I'd fix it so it could read OMF, ELF and
- Jarrett Billingsley (3/8) Nov 07 2007 Do it! Follow your dreams! ;)
- Rioshin an'Harthen (3/8) Nov 08 2007 Please do!
Anyone has an idea how to convert DxErr.lib (from the DirectX SDK) from COFF to OMF? It is not an import library, so coffimplib.exe only says:d:\D>coffimplib.exe DxErr.lib -f Error: not an import libraryIt seems it implements at least:DXGetErrorString DXGetErrorDescription DXTraceBTW Walter: Please rewrite OPTLINK, so that it understands OMF directly... pretty please with a cherry on top. ;-) LLAP, Sascha Katzner
Nov 06 2007
Sascha Katzner wrote:Anyone has an idea how to convert DxErr.lib (from the DirectX SDK) from COFF to OMF? It is not an import library, so coffimplib.exe only says:you could use implib to create the lib file directly from the dll.d:\D>coffimplib.exe DxErr.lib -f Error: not an import libraryIt seems it implements at least:but since it seems to define functions, you can try coff2omf instead.DXGetErrorString DXGetErrorDescription DXTrace
Nov 06 2007
Jascha Wetzel wrote:you could use implib to create the lib file directly from the dll.There is no DxErr.dll, the code for the mentioned 3 functions is only in the lib file.but since it seems to define functions, you can try coff2omf instead.Just tried that and it didn't work. The resulting lib is much smaller (4.4mb vs. 2.1mb) and if I try to link it, OPTLINK terminates with an "Unexpected OPTLINK Termination at EIP=0044C37B". :(
Nov 06 2007
Jascha Wetzel wrote:Using coff2omf, you first have to convert it to the old COFF, Microsoft's made its own, so try as described in http://www.digitalmars.com/ctg/coff2omf.html using the Visual Studio 6 linker, AFAIK it only works with v6you could use implib to create the lib file directly from the dll.There is no DxErr.dll, the code for the mentioned 3 functions is only in the lib file.but since it seems to define functions, you can try coff2omf instead.Just tried that and it didn't work. The resulting lib is much smaller (4.4mb vs. 2.1mb) and if I try to link it, OPTLINK terminates with an "Unexpected OPTLINK Termination at EIP=0044C37B". :(
Nov 06 2007
Leo Walkling wrote:Using coff2omf, you first have to convert it to the old COFF, Microsoft's made its own, so try as described in http://www.digitalmars.com/ctg/coff2omf.html using the Visual Studio 6 linker, AFAIK it only works with v6Just tried that too and it has no effect, the resulting lib from coff2omf is identical to the one without the VS6-Linker step. :-( http://img452.imageshack.us/img452/9656/optlinkterminationgj3.png
Nov 07 2007
Sascha Katzner wrote:Leo Walkling wrote:i once had problems finding the correct linker version for this. i'm not sure if it's the one from VS6, but the one that worked for me is Microsoft (R) Incremental Linker Version 6.00.8168Using coff2omf, you first have to convert it to the old COFF, Microsoft's made its own, so try as described in http://www.digitalmars.com/ctg/coff2omf.html using the Visual Studio 6 linker, AFAIK it only works with v6Just tried that too and it has no effect, the resulting lib from coff2omf is identical to the one without the VS6-Linker step. :-( http://img452.imageshack.us/img452/9656/optlinkterminationgj3.png
Nov 07 2007
Jascha Wetzel wrote:i once had problems finding the correct linker version for this. i'm not sure if it's the one from VS6, but the one that worked for me is Microsoft (R) Incremental Linker Version 6.00.8168That is the one from VS6.
Nov 07 2007
Sascha Katzner wrote:BTW Walter: Please rewrite OPTLINK, so that it understands OMF directly... pretty please with a cherry on top. ;-)argh! COFF, not OMF! ;-)
Nov 06 2007
Sascha Katzner wrote:Sascha Katzner wrote:I believe Walter said before that if he did rewrite OPTLINK (a *big* if) he would probably change it use ELF (or maybe DWARF now?), not COFF. --bbBTW Walter: Please rewrite OPTLINK, so that it understands OMF directly... pretty please with a cherry on top. ;-)argh! COFF, not OMF! ;-)
Nov 06 2007
Bill Baxter wrote:I believe Walter said before that if he did rewrite OPTLINK (a *big* if) he would probably change it use ELF (or maybe DWARF now?), not COFF.The question is, if this would be wise for the future of D. I suppose the missing COFF support is a big reason for a lot of people to not use D in their projects. A lot of people work (or have to work) with M$ products and sometimes you have no control or choice which libraries you have to use or in which format they are available. And the probability that a given library is comming from a M$ product and is therefore a COFF is high. Therefore I think D should at least have the capability to *import* the most important object/lib formats. It neither have to use them in the complete "toolchain" nor does it have to export in it. I've looked and found the posting from Walter, he wrote that the reason why he doesn't want to use COFF is that M$ keeps changing the format and he doesn't have the time to follow that... perhaps this will change sometime if we keep asking nice. ;-) LLAP, Sascha Katzner
Nov 06 2007
"Sascha Katzner" <sorry.no spam.invalid> wrote in message news:fgpgn7$un9$1 digitalmars.com...Anyone has an idea how to convert DxErr.lib (from the DirectX SDK) from COFF to OMF? It is not an import library, so coffimplib.exe only says:If all you need is DXGetErrorDescription, don't bother, it's kind of pointless. Even if you use DxErr.dll from the Clootie graphics page, it's still a ~600KB DLL. I have no idea why it's so huge. Instead, you can grab the GetDXErrorDescription function from http://www.dsource.org/projects/nonagon/browser/trunk/nonagon/core.d.d:\D>coffimplib.exe DxErr.lib -f Error: not an import libraryIt seems it implements at least:DXGetErrorString DXGetErrorDescription DXTraceBTW Walter: Please rewrite OPTLINK, so that it understands OMF directly... pretty please with a cherry on top. ;-) LLAP, Sascha Katzner
Nov 06 2007
Jarrett Billingsley wrote:If all you need is DXGetErrorDescription, don't bother, it's kind of pointless. Even if you use DxErr.dll from the Clootie graphics page, it's still a ~600KB DLL. I have no idea why it's so huge. Instead, you can grab the GetDXErrorDescription function from http://www.dsource.org/projects/nonagon/browser/trunk/nonagon/core.d.I hoped to go the official way, since every time the file gets updated from M$ I have to recheck my error function, if I implement it myself.
Nov 07 2007
I have an OMF version of dxerr8.lib. Wish I could remember how I made it. Its too big to post, email me and I sent it. Dick Sascha Katzner wrote:Anyone has an idea how to convert DxErr.lib (from the DirectX SDK) from COFF to OMF? It is not an import library, so coffimplib.exe only says:d:\D>coffimplib.exe DxErr.lib -f Error: not an import libraryIt seems it implements at least:DXGetErrorString DXGetErrorDescription DXTraceBTW Walter: Please rewrite OPTLINK, so that it understands OMF directly... pretty please with a cherry on top. ;-) LLAP, Sascha Katzner
Nov 06 2007
dickl wrote:I have an OMF version of dxerr8.lib. Wish I could remember how I made it. Its too big to post, email me and I sent it.Thanks, but I need dxerr.lib (without a number at the end). It's for Direct3D 10.
Nov 07 2007
Sascha Katzner wrote:BTW Walter: Please rewrite OPTLINK, so that it understands OMF directly... pretty please with a cherry on top. ;-)I'd love to rewrite Optlink. I'd fix it so it could read OMF, ELF and COFF, and then switch the compiler over to generating ELF only.
Nov 07 2007
"Walter Bright" <newshound1 digitalmars.com> wrote in message news:fgt6pg$2l0j$1 digitalmars.com...Sascha Katzner wrote:Do it! Follow your dreams! ;)BTW Walter: Please rewrite OPTLINK, so that it understands OMF directly... pretty please with a cherry on top. ;-)I'd love to rewrite Optlink. I'd fix it so it could read OMF, ELF and COFF, and then switch the compiler over to generating ELF only.
Nov 07 2007
"Walter Bright" <newshound1 digitalmars.com> kirjoitti viestissä news:fgt6pg$2l0j$1 digitalmars.com...Sascha Katzner wrote:Please do!BTW Walter: Please rewrite OPTLINK, so that it understands OMF directly... pretty please with a cherry on top. ;-)I'd love to rewrite Optlink. I'd fix it so it could read OMF, ELF and COFF, and then switch the compiler over to generating ELF only.
Nov 08 2007