PDA

View Full Version : FreePascal & DirectX



Legolas
07-04-2004, 11:23 PM
Hi all... I downloaded FreePascal and Clootie's DirectX headers for freepascal, but I have some errors in the header files when I try to compile my projects... Anyone involved in FreePascal & DirectX here? :D

Well... thanks in advance :)

Clootie
09-04-2004, 12:19 PM
What kind of erros you see?
Do you compile them in Delphi compatibility mode (it should be turned on automatically in DirectX.inc file)?

Legolas
10-04-2004, 01:32 AM
First of all, thanks for your reply :)

Well, yes, I compile in Delphi compatibility mode. The error I obtain:
DXTypes.pas(74,1) Internal error 200310221

Could be a bug in the compiler?

Clootie
10-04-2004, 06:10 AM
>Could be a bug in the compiler?
Seems so. What version of compiler you are using? Note: FreePascal code was tested with 1.9.2 version of compiler.

Legolas
10-04-2004, 12:56 PM
I'm using 1.9.2 version... :(

Clootie
10-04-2004, 02:20 PM
Seems something wrong with you system cos (1,74) is inside a comment block:
{************************************************* *****************************}
Try to compile only DXTypes.pas alone - this can probably show source of the problem...

Legolas
11-04-2004, 07:09 PM
Now it works =)
My error was to put directx headers in the "uses" part like in Delphi without using the inclusion of DirectX.inc... :oops:

Now with {$I DirectX.inc} directive it works pretty fine! Good job, Clootie :wink: