Thread: Borland and DirectX

  1. #1
    Spaced Cadet
    Join Date
    Aug 2003

    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).
    Last edited by Dark Nemesis; 05-11-2004 at 06:55 PM.

  2. #2
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    This is easy.

    Borland and DirectX.

    Don't do it.


    Get a version of MSVC.

  3. #3
    The Defective GRAPE Lurker's Avatar
    Join Date
    Feb 2003
    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.
    Do not make direct eye contact with me.

  4. #4
    Join Date
    Jan 2002
    >>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.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  5. #5
    Spaced Cadet
    Join Date
    Aug 2003
    Yay! It works, thank-you!

Popular pages Recent additions subscribe to a feed
Website Security Test