Borland and DirectX

This is a discussion on Borland and DirectX within the Game Programming forums, part of the General Programming Boards category; I'd like to use directx with the borland command-line compiler, but I get the following error. I was wondering what ...

  1. #1
    Spaced Cadet
    Join Date
    Aug 2003
    Posts
    110

    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 07:55 PM.

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

    Borland and DirectX.

    Don't do it.

    Period.




    Get a version of MSVC.

  3. #3
    The Defective GRAPE Lurker's Avatar
    Join Date
    Feb 2003
    Posts
    949
    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
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    >>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
    Posts
    110
    Yay! It works, thank-you!

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21