Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hye, I want to compile some Dire

Status
Not open for further replies.

spirou

Programmer
Oct 22, 2001
22
FR
Hye,

I want to compile some DirectX5 code i find on the Web.
I download the Borland C Compiler where DirectX7 librairies are supplied.
I configured bcc32 and ilink32 to look in the librairie and include directories but when I compile I have this message :

Error: Unresolved external 'DirectDrawCreate' referenced from C:\PERSONNEL\DEV\IA\IAMAINFRAME.OBJ

But the ddraw.h and .lib are in the directories I specified before.


Could someone help me ?

 
The program thinks the function "DirectDrawCreate" is an external function that it cannot find. This sometimes refers to the function not having the proper namespace set up. For example, if my program has a form named "MyForm" and I declare a function as "void DoThis(String *Name)" I would have to set it up like this:
Code:
void MyForm::DoThis (String *Name)
{
   // The function does etc., etc.
.
.
.
}

The "MyForm::" declares the namespace. James P. Cottingham

I am the Unknown lead by the Unknowing.
I have done so much with so little
for so long that I am now qualified
to do anything with nothing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top