Yahoo Suche Web Suche

Suchergebnisse

  1. Suchergebnisse:
  1. Lazarus is a Delphi compatible cross-platform IDE for Rapid Application Development. It has variety of components ready for use and a graphical form designer to easily create complex graphical user interfaces.

    • Downloads

      You can download Lazarus 3.2 which is accompanied by FPC...

    • Home

      Lazarus has a huge community of people supporting each...

    • About

      Lazarus is being developed to be totally and completely API...

    • Features

      Lazarus is a capable IDE for handling large projects. Its...

    • Why Use It

      Lazarus is made for writing object orientated Pascal code....

    • Contact Us

      For general questions about Lazarus or FPC. How to use or...

    • General
    • Operating Systems
    • Ppumove, .Ppu, .Ppl
    • External - Statically Loading A Dynamic Library
    • Loadlibrary - Dynamically Loading A Dynamic Library
    • Initialization
    • Finalization
    • Versions, Distribution
    • See Also

    Static linking

    FPC compiles and links a static executable by default. That means it tells the linker to put all .o files of the project and all packages into one big executable. 1. Advantages: 1.1. No external dependencies. 2. Disadvantages: 2.1. No code is shared between different programs on the same computer. 2.2. You can not load/unload a plugin.

    Dynamic libraries

    The alternative to static linking is using dynamic libraries. The idea of dynamic libraries is to share code between programs, 1. Advantages: 1.1. Saving the memory of the code 1.2. Reducing startup time for often used libraries 1.3. Allowing plugins. 2. Disadvantages: 2.1. They are slower for seldomly used libs. 2.2. Their structure and internals are more complicated (this is mainly a problem for the compiler). 2.3. Their initialization is different (see below) 2.4. Sharing code requires a v...

    The library prefix and extension columns indicate how the names of libraries are resolved and created for the listed operating systems.

    FPC normally creates for every unit a .ppu and .o file. The .ppu file contains every important information of the .pas/.pp file (types, required filenames like the .o file), while the .o filecontains the assembler code and the mangled names understood by the current system. The ppumove tool included with every FPC installation, converts one or seve...

    The static loading of a dynamic library can be done in code, by using the external keyword, like in the example below which shows how a gtk function is loaded:

    Loading a dynamic library is simple with the Loadlibrary function of the unit dynlibs. The main problem is to get the filename, which depends on the version and the operating system. Since 2.2.2, a constant "sharedsuffix" is declared in unit dynlibs to ease this. It maps to the relevant extension (dll/so/dylib) without a point as prefix. Here are t...

    Every unit can contain an initialization section. The order of the initialization sections depend on the uses sections of each unit. The initialization of the RTL itself (in system.pp) that is done before your initialization sections are entered slightly differs between a program and a shared library. Most notably there is a difference in how the e...

    Every unit can contain a finalization section. The order is the reverse order of the initialization sections. After all finalization sections are executed it will call the procedure that you have previously assigned to Dll_Process_Detach_Hook. Be very careful what you do in this procedure: 1. all other units will already be finalized 2. parts of th...

    Libraries tend to grow and change over time. Adding new features is no problem, but removing a public method or changing its parameters makes the library incompatible. That means either an installed library (.so, .dll, .dylib) is replaced by a compatible one ora new library must be added to the system. That's why every library contains a version. T...

  2. 27. Feb. 2015 · The FPC version switcher package allows tweaking all the above options and even providing a dropdown list in the IDE Tools/Options/Compiler Version in order to select the required fpc version, and set the $(UseFPCVersion) macro accordingly.

  3. 8. Nov. 2023 · FPCUPdeluxe is a GUI installer for FPC and Lazarus. It's based on fpcup. GitHub repository; Latest releases on GitHub; Lazarus Forum Topic; Installation of FPC and Lazarus. The main purpose of fpcdeluxe is to provide a means for installing and updating multiple versions of FPC and Lazarus in a self-contained manner. Self-contained ...

  4. 25. Jan. 2022 · This page contains both tutorials/code and information with regard to network programming with Lazarus as well as plain FPC. Contents. 1 TCP/IP Protocol. 1.1 Basic IP socket programming and a bit more. 1.2 CGI/FastCGI - REST, chat, blog, web page etc. 1.3 SSH/Telnet client, sending emails, downloading files, OAuthv1 examples. 1.4 Webserver example.

  5. 25. Apr. 2023 · The latest releases of the Lazarus IDE, the Free Pascal compiler and the Free Pascal Compiler source can be downloaded from the Lazarus file area. Comprehensive installation instructions are available.