-
Borland and DirectX
I'd like to use directx with the borland command-line compiler, but I get the following error. I was wondering what libs are needed for DirectX areas (right now all I need it DirectInput) and how to fix the error below. Thanks for any help.
Error: 'D:\BORLAND\BCC55\LIB\DXERR9.LIB' contains invalid OMF record, type 0x21 (possibly COFF)
I'm using Borland Command Line 5.5 and DirectX SDK 9 (most recent version afaik, downloaded two days ago).
-
This is easy.
Borland and DirectX.
Don't do it.
Period.
Get a version of MSVC.
-
Gotta agree. I NEVER, over a period of a year, got borland to work with DX. Anyone who has gotten it to work is probably lying.
-
>>Error: 'D:\BORLAND\BCC55\LIB\DXERR9.LIB' contains invalid OMF record, type 0x21 (possibly COFF)<<
Microsoft and Borland libs are incompatible which is best explained here; for dx9 take note of the problems involved with static lib conversion.
Using coff2omf or implib to generate borland libs will seem to work but any programs compiled with those libs will fail.
This page seems to provide a step-by-step guide to getting dx9 to work with the command line tools using custom Borland libs and dll's (see also this page ).
This old post explains more or less the same thing but without the link to the how-to.
Good luck and let us know how you get on. :)
-
Yay! It works, thank-you!