Results 1 to 7 of 7

Thread: FreePascal & DirectX

  1. #1

    FreePascal & DirectX

    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?

    Well... thanks in advance
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

  2. #2

    FreePascal & DirectX

    What kind of erros you see?
    Do you compile them in Delphi compatibility mode (it should be turned on automatically in DirectX.inc file)?
    There are only 10 types of people in this world; those who understand binary and those who don't.

  3. #3

    FreePascal & DirectX

    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?
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

  4. #4

    FreePascal & DirectX

    >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.
    There are only 10 types of people in this world; those who understand binary and those who don't.

  5. #5

    FreePascal & DirectX

    I'm using 1.9.2 version...
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

  6. #6

    FreePascal & DirectX

    Seems something wrong with you system cos (1,74) is inside a comment block:
    [pascal]{************************************************* *****************************}[/pascal]
    Try to compile only DXTypes.pas alone - this can probably show source of the problem...
    There are only 10 types of people in this world; those who understand binary and those who don't.

  7. #7

    FreePascal & DirectX

    Now it works =)
    My error was to put directx headers in the "uses" part like in Delphi without using the inclusion of DirectX.inc... ops:

    Now with {$I DirectX.inc} directive it works pretty fine! Good job, Clootie
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •