Results 1 to 6 of 6

Thread: Dynamic arrays in Dev-Pascal

  1. #1

    Dynamic arrays in Dev-Pascal

    System: Windows XP
    Compiler/IDE: Free Pascal with Dev Pascal
    API: None

    According to the Free Pascal reference manual, I should be able to define dynamic arrays like so:

    Code:
    type intarray = array of integer;
    var arr : intarray;
    But the compiler gives me an error on the first line, saying "[ expected by OF found"

    I've looked in the Options menu, and I'm using Free Pascal as my compiler, so why would the reference manual syntax not work?[/code]

  2. #2

    Dynamic arrays in Dev-Pascal

    IIRC Dev-Pascal is shipped with an ooooooold fpc version. Maybe that synthax is available in a recent version only.
    Get your fpc4gba copy now!
    Get your fpc4nds copy now!

  3. #3

    Dynamic arrays in Dev-Pascal

    You're right, this version was created in 2002.

    I would just be using the latest version of Free Pascal, but whenever I started the text-mode IDE (either from the command prompt or by double-clicking it from Windows Explorer), it wouldn't respond to any mouse movements; the keyboard wouldn't do anything either, although by hitting random keys I could get what looked like a cursor to move across the screen.

    Any ideas?

  4. #4

    Dynamic arrays in Dev-Pascal

    OK, I'm set up with emacs and the latest version of Free Pascal now. Is anyone else having the same problem with the Free Pascal IDE?

  5. #5
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    Dynamic arrays in Dev-Pascal

    If you want a good IDE for FPC try Lazarus, they stay up to date and you don't need to compile with any of the LCL if you want a strait FPC compiled exe.

    Besides the Turbo Vision style IDE is a bit antiquated no?
    Jason McMillen
    Pascal Game Development
    Co-Founder





  6. #6

    Dynamic arrays in Dev-Pascal

    Quote Originally Posted by Captain_Thunder
    You're right, this version was created in 2002.

    I would just be using the latest version of Free Pascal, but whenever I started the text-mode IDE (either from the command prompt or by double-clicking it from Windows Explorer), it wouldn't respond to any mouse movements; the keyboard wouldn't do anything either, although by hitting random keys I could get what looked like a cursor to move across the screen.

    Any ideas?
    No. However, some versions of Windows disable the mouse by default. Simply open the properties of the text mode window and enable the mouse.

    That doesn't explain why the keyboard doesn't work though.

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
  •