|
Author Topic:   link error
CyberX
New Member
posted August 13, 2000 10:14 AM            
Hi,
I'm making a game (2d) in Borland C++ builder (Yes C++ builder but when I try to compile I get this error:
[Linker Error] Unresolved external 'DirectDrawCreate' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER5\PROJECTS\BREEAK\MAIN.OBJ

and

#include <ddraw.h>

is just there I think it's something with a path of a file but where?

CyberX

IP:

Klaus Hartmann
Member
posted August 13, 2000 04:40 PM            
CyberX - It is not enough to just include the DDRAW.H header file. You also need to link to DirectDraw's export library, which is called DDRAW.LIB.

Unfortunately, I'm not familiar with Borland compilers, but there should be a linker section somewhere in your project settings. You need to add DDRAW.LIB to the list library files.

HTH,
Niki

IP: