Results 1 to 9 of 9

Thread: Uses declaration on FPC

  1. #1

    Uses declaration on FPC

    why this did not work?

    [pascal] obj_engine in '../../SDL & GL/obj_engine.pas',
    obj_input in '../../SDL & GL/obj_input.pas',
    obj_image in '../../SDL & GL/obj_image.pas',
    obj_font in '../../SDL & GL/obj_font.pas';[/pascal]

    obs: on delphi it compiles well
    From brazil (:

    Pascal pownz!

  2. #2

    Uses declaration on FPC

    Maybe because the blank space in "SDL & GL"?
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

  3. #3

    Uses declaration on FPC

    FPC and lazarus don't allow you to specify paths in the uses clause. Instead set the path in your project options or set them in FPC.cfg.

  4. #4

    Uses declaration on FPC

    In FPC, I use paths in the uses clause, and it works:

    Code:
    {$mode objfpc}{$H+}
    uses
      Mundano in '..\Mundano.pas',
      Escenas in '..\Escenas.pas',
      Entidades in '..\Entidades.pas';

  5. #5

    Uses declaration on FPC

    Well, I'll be damned, it does work . Guess that was all a figment of my imagination from a version long gone.

    I'd try escaping the & symbol and see if thats the problem. Seems in the back of my mind that a c style escape might help (\&).

  6. #6

    Re: Uses declaration on FPC

    Quote Originally Posted by arthurprs
    why this did not work?

    [pascal] obj_engine in '../../SDL & GL/obj_engine.pas',
    obj_input in '../../SDL & GL/obj_input.pas',
    obj_image in '../../SDL & GL/obj_image.pas',
    obj_font in '../../SDL & GL/obj_font.pas';[/pascal]

    obs: on delphi it compiles well
    You could try \ instead of / , that's what I'm using (in Windows). No idea if that affects in Linux.

  7. #7

    Uses declaration on FPC

    i think it doesn't like spaces, also the uses.. in.. breaks code insight in lazarus.
    This is my game project - Top Down City:
    http://www.pascalgamedevelopment.com...y-Topic-Reboot

    My OpenAL audio wrapper with Intelligent Source Manager to use unlimited:
    http://www.pascalgamedevelopment.com...source+manager

  8. #8

    Uses declaration on FPC

    Inverted the / and worked
    From brazil (:

    Pascal pownz!

  9. #9

    Uses declaration on FPC

    Quote Originally Posted by arthurprs
    Inverted the / and worked
    Silly Linux software. :lol:

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
  •