Advertisement

Borland, Windows, & Directx

Started by August 08, 2002 04:54 PM
1 comment, last by cenla 22 years, 4 months ago
I need some help with windows and directx using Borland command line c++ compiler v5.5. I can get a simple windows program to compile/link/run. But when I try to add directx I run into all sorts of problems. I can get a simple directdraw program to compile using DirectX8.1 SDK. But I am not sure I am linking correctly. I have read about the problems linking with borland on this forum. Therefore, I downloaded the import files from Micheal Foetsch (www.geocities.com/foetsch/borland_dx8_libs.zip). I put these .lib files in C:\Borland\BCC55\Lib\BorDX, the .dll files in my borland \bin directory (which is part of my path), and put my directx8.1 sdk include files are in C:\DXSDK\include. My bcc32.cfg file is as follows: -Ic:\DXSDK\include;c:\Borland\Bcc55\include -Lc:\Borland\Bcc55\lib\BorDX;c:\Borland\Bcc55\lib -tW -DWIN32 My ilink32.cfg file is as follows: -Lc:\Borland\Bcc55\lib\BorDX;c:\Borland\Bcc55\lib I compile using: bcc32 -c game.cpp which gives me a game.obj file I then try to link using: ilink32 game.obj,,,ddraw.lib dxguid.lib which gave me a game.exe and various other .il* files This gives me a game.exe, but when I try to run it, the following error message is displayed: C:\Borland\bcc55\Projects\game\game.exe is not a valid Win32 application. Any help would be appreciated.
random guess: try -D_WIN32 instead.
Advertisement
I got an answer elsewhere...link while compiling

bcc32 armycdr.cpp ddraw.lib dxguid.lib

This topic is closed to new replies.

Advertisement