CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2013
    Posts
    4

    compiling pascal to object code

    Hi all,

    I am used to borland delphi and pascal but not used it for years, ( it will not run on my current system. Win7)

    I now use lazarus and was horrified to discovwer I cannot compile to O code, I did a bit of searching and fopund many complicated solutions that I could not understand. I used to lecture in Compter Science, and always thought that would Lazarus does is called an interpreter. SO, how do I create object code that can be sent to someone whoo huast wishes to run the code without Lazarus etc?

    Thanks And best wishes



    Best is the enemy of good enough

    Barrs law of recurcive futility:-

    If you're smart enough to use one of these.....

    .....you can probably manage without one

  2. #2
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,654

    Re: compiling pascal to object code

    According to this
    The Lazarus IDE is a stable and feature rich visual programming environment for the FreePascal Compiler. It supports the creation of self-standing graphical and console applications and runs on Linux, FreeBSD, MacOSX and Windows.
    it should be possible to create fully compiled/linked binaries. See this http://wiki.lazarus.freepascal.org/Cross_compiling

    Regarding the object code (or probably unit as Delphi calls them) have you read the documentation? There are quite a lot here
    http://wiki.lazarus.freepascal.org/L...ion#Developing and for you this
    http://wiki.lazarus.freepascal.org/L...r_Delphi_Users is probably a good Place to start
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    https://visualstudio.microsoft.com/vs

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured