• Borland Turbo Pascal

    From Vince Coen@2:250/1 to All on Sat Mar 15 20:44:35 2008
    Hello All!

    Using v7.0 I have a lot of files that contain a unit each.
    Some have the overlay flag on.

    The primary file defines all these as well as the overlay flags.

    That takes care of when I wish to use overlays in the program.

    Now I want to compile to units and program NOT using overlays.

    Is there a simple way of doing this?

    To compile them I use


    === Cut ===
    bpc filemgr.pas /B /GD -Id:\lap\filemgr -Ud:\lap\filemgr -Ed:\lap\filemgr\units -Od:\lap\filemgr\obj -Q
    === Cut ===

    Thanks, for any help.


    Vince

    --- Linux/Mbse/GoldED+/LNX 1.1.5
    * Origin: Air Applewood, The Linux Gateway to the UK (2:250/1)
  • From Robert Wolfe@1:261/20 to Vince Coen on Sat Mar 15 21:22:20 2008
    Vince Coen wrote to All:

    That takes care of when I wish to use overlays in the program.

    Now I want to compile to units and program NOT using overlays.

    Is there a simple way of doing this?

    To compile them I use


    === Cut ===
    bpc filemgr.pas /B /GD -Id:\lap\filemgr -Ud:\lap\filemgr -Ed:\lap\filemgr\units -Od:\lap\filemgr\obj -Q
    === Cut ===

    Try compiling from the IDE instead of the command line and turn off
    overlays and see if that makes a difference.

    Greetings, Robert Wolfe

    ... (A)bort, (R)etry, (P)retend this never happened...

    --- MBSE BBS v0.95.3 (GNU/Linux-i386)
    * Origin: Omicron Theta * Buffalo NY * net261.ath.cx (1:261/20)
  • From Vince Coen@2:250/1 to Robert Wolfe on Sun Mar 16 15:07:35 2008
    Hello Robert!

    15 Mar 08 21:22, you wrote to me:

    That takes care of when I wish to use overlays in the program.

    Now I want to compile to units and program NOT using overlays.

    Is there a simple way of doing this?

    To compile them I use


    === Cut ===
    bpc filemgr.pas /B /GD -Id:\lap\filemgr -Ud:\lap\filemgr
    -Ed:\lap\filemgr\units -Od:\lap\filemgr\obj -Q
    === Cut ===

    Try compiling from the IDE instead of the command line and turn off overlays and see if that makes a difference.

    I assume you mean set Overlays Allowed in Compiler options. If so nope that does not seem to do a lot other than make the .EXE slightly larger but still generates a *.OVR file.



    Vince

    --- Linux/Mbse/GoldED+/LNX 1.1.5
    * Origin: Air Applewood, The Linux Gateway to the UK (2:250/1)
  • From Robert Wolfe@1:261/20 to Vince Coen on Sun Mar 16 16:03:37 2008
    Vince Coen wrote to Robert Wolfe:

    I assume you mean set Overlays Allowed in Compiler options. If so nope that
    does not seem to do a lot other than make the .EXE slightly larger but still
    generates a *.OVR file.

    That is what I was referring to, yes. I believe you can also use the
    {$O-} directive in the code as well (at least that is the correct code
    to use IIRC, others may prove me wrong on this one).

    Greetings, Robert Wolfe

    ... At a store: In God we trust; all others pay cash.

    --- MBSE BBS v0.95.3 (GNU/Linux-i386)
    * Origin: Omicron Theta * Buffalo NY * net261.ath.cx (1:261/20)