Results 1 to 10 of 24

Thread: Class operators in Freepascal records like in Delphi 2010?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Just rebuild FPC from source

    It's easy
    Peregrinus, expectavi pedes meos in cymbalis
    Nullus norvegicorum sole urinat

  2. #2
    Quote Originally Posted by JSoftware View Post
    Just rebuild FPC from source

    It's easy
    Can I do that AND use the new compiler in Lazarus; overriding the one that comes with it?

    cheers,
    Paul

  3. #3
    Yes, no problem. If you're going to use a newer compiler, I would advice you to upgrade lazarus to trunk version too anyway
    Peregrinus, expectavi pedes meos in cymbalis
    Nullus norvegicorum sole urinat

  4. #4
    Quote Originally Posted by JSoftware View Post
    Yes, no problem. If you're going to use a newer compiler, I would advice you to upgrade lazarus to trunk version too anyway
    LOL this sounds like more work than I wanted to do...I will look into it

    So if I upgraded Lazarus to the trunk version, would this have freepascal 2.5.1 with it? Or would I have to download both separately from SVN?

    cheers,
    Paul

  5. #5
    PGD Staff code_glitch's Avatar
    Join Date
    Oct 2009
    Location
    UK (England, the bigger bit)
    Posts
    933
    Blog Entries
    45
    Hang on j, you mean we're already at 2.5.x WTF? I'm still getting used to everything in 2.4.2....
    I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.

  6. #6
    It's been 2.5.1 for a very long time. That's just the version number for the trunk version

    Lazarus and FPC are seperate products. Release versions of FPC are just bundled with the Lazarus releases so it's possible to compile programs
    Peregrinus, expectavi pedes meos in cymbalis
    Nullus norvegicorum sole urinat

  7. #7
    If you're on Windows (32-bit version), here's .bat file I use to compile FPC trunk after I update SVN (just adjust FPCMAKEPATH, FPCPATH and OUTPATH - in this case, C:/dev/fpc/2.4.2 is location of the latest official FPC, and C:/dev/fpc/2.5.1 is location where I want FPC to be installed for later use). It does full clean-make-install cycle.

    set FPCMAKEPATH=C:/dev/fpc/2.4.2
    set FPCPATH=C:/dev/fpc/2.4.2
    set OUTPATH=C:/dev/fpc/2.5.1
    for /r %OUTPATH%\examples %%d in (.svn) do @rmdir /s /q %%d
    %FPCMAKEPATH%/bin/i386-win32/make clean FPC=%FPCPATH%/bin/i386-win32/ppc386.exe
    if errorlevel 1 goto quit
    %FPCMAKEPATH%/bin/i386-win32/make all FPC=%FPCPATH%/bin/i386-win32/ppc386.exe
    if errorlevel 1 goto quit
    %FPCMAKEPATH%/bin/i386-win32/make install FPC=%FPCPATH%/bin/i386-win32/ppc386.exe INSTALL_BASEDIR=%OUTPATH%
    for /r %OUTPATH%\examples %%d in (.svn) do @rmdir /s /q %%d
    :quit

    As of Lazarus, just point FPC directory to C:/dev/fpc/2.5.1 (or wherever you set OUTPATH in the above .bat file), and use built-in feature to recompile it.
    blog: http://alexionne.blogspot.com/

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
  •