Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

including units in free pascal

simonbornsimonborn Posts: 3Member
hi.

i am trying to include a downloaded unit into free pascal. whatever the directory of the unit or whether i use a default .ppu or compile a .pp unit and then try ot use it, it doesn't work.

can someone give me a "beginner's guide to including units"? i used tp before, but am new to fp.

regards
simon born

Comments

  • ManningManning Posts: 1,621Member
    : hi.
    :
    : i am trying to include a downloaded unit into free pascal. whatever the directory of the unit or whether i use a default .ppu or compile a .pp unit and then try ot use it, it doesn't work.
    :
    : can someone give me a "beginner's guide to including units"? i used tp before, but am new to fp.

    If the unit came in source form, it should work just fine so long as the directory you placed the unit into is in the Include Directory in the compiler options.

    If the unit came in compiled form, youre out of luck unfortunately. Compiled units can only be used with the compiler they were created with.
  • simonbornsimonborn Posts: 3Member
    thanks very much for the help.

    found it and am able to use the unit.

    regards
    simon born

    p.s.: does someone know a keyboard unit for fp that allows asking whether a key is pressed directly (w/o keypressed)? the one from freepascal.org does not work (error:direct assembler not allowed).
  • cybersurfercybersurfer Posts: 41Member
    : : hi.
    : :
    : : i am trying to include a downloaded unit into free pascal. whatever the directory of the unit or whether i use a default .ppu or compile a .pp unit and then try ot use it, it doesn't work.
    : :
    : : can someone give me a "beginner's guide to including units"? i used tp before, but am new to fp.
    :
    : If the unit came in source form, it should work just fine so long as the directory you placed the unit into is in the Include Directory in the compiler options.
    :
    : If the unit came in compiled form, youre out of luck unfortunately. Compiled units can only be used with the compiler they were created with.
    :

    [b] [blue] cybersurfer [/blue] [/b]
    > the units may not be workin because of the wrong directory, u should have a folder called units, u can try to copy and paste all the units that u have from the the units folder into the Bin folder. that should work , it worked for me !

Sign In or Register to comment.