IDE Window: Compiler Options/de

From Free Pascal wiki
Revision as of 12:43, 3 May 2006 by Swen (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Deutsch (de) English (en) español (es) français (fr) 日本語 (ja) русский (ru)

Pfade

  • Relative Pfade werden erweitert mit dem Projekt- oder Package-Verzeichnis (wo die .lpi/.lpk Datei ist).
  • Diese Pfade werden zu den Suchpfaden hinzugefügt.
  • Es gibt keine Möglichkeit, um einen Pfad aus den Suchpfaden zu entfernen.
  • If a package or project uses a package, it will inherited the usage search paths. You can see the inherited search paths in the #Inherited page.
  • Using the Lazarus package system, you hardly need to set search paths manually.
  • Der FreePascal Compiler hat eine eigene Konfigurationsdatei (Vorgabe: /etc/fpc.cfg) which defines a set of search paths. For example to find the FPC units of the RTL or the FCL like 'classes', 'sysutils'.
  • Suchpfade werden durch ein Semikolon ';' getrennt.
  • Heading and trailing spaces are ignored.
  • Sie können Makros verwenden. Zum Beispiel $(TargetCPU). Siehe IDE Macros in paths and filenames.

Andere Unitdateien

Dies ist der Suchpfad für die Pascal Units (.ppu, .pp, .pas, .p) des Projekts oder Packages. Schauen sie auf den Fenstertitel, um zu erfahren welches (aktiv ist). Dieser Pfad wird an den FreePascal Compiler gegeben, welcher ihn zu seinem Unit-Pfad hinzufügt.

  • Das Hinzufügen und Entfernen von Units zum Projekt/Package wird den Unit-Pfad automatisch anpassen.
  • VORSICHT: Wenn ein Package ein separates Ausgabeverzeichnis für seine .ppu Dateien verwendet, fügen sie die Quellenverzeichnisse nicht zu diesem Pfad hinzu. Andernfalls wird FPC die .ppu des Packages neu erstellen und sie in ihrem Projektverzeichnis ablegen. Dies führt zu mehrfachen .ppu Versionen und sie werden seltsame 'Can not find unit' Fehler erhalten.

Zum Beispiel: Fügen sie keine FPC oder Lazarus Quellen (.pas or .pp) zu diesem Suchpfad hinzu.

Include-Dateien

Dies ist der Suchpfad für die Include-Dateien (z.B. .inc, .lrs Dateien). Dieser Pfad wird an den FreePascal Compiler gegeben, welcher ihn zu seinem Include-Pfad hinzufügt, der von den Include-Direktiven wie {$I filename.inc} oder {$INCLUDE filename.inc} verwendet wird.

Andere Quellen

Dies ist der Suchpfad für Pascal Unit-Quellen, der nur von der IDE verwendet wird und nicht vom Compiler.

Beispiel: You have a directory with sources and a directory with the corresponding .ppu files. You add the .ppu directory to the 'Other Unit Files' path and the .pas directory to the 'Other sources' path. This way the compiler will use the .ppu files and not try to rebuild them everytime. And the IDE will find the sources and Find Declaration works.

Bibliotheken

Dies ist der Suchpfad für Bibliotheken (.dll oder .so oder .a Dateien).

Unit-Ausgabeverzeichnis

Dies ist das Verzeichnis, in dem der Compiler alle Ausgabedateien, wie .ppu, .o, .rst Dateien ablegt.

Anmerkung: Packages normally inherited their output directory via the 'usage' options.

Zusätzlicher Debuggerpfad

Diese Verzeichnisse werden zum Suchpfad des IDE-Debuggers hinzugefügt, wenn er nach Quelldateien sucht (Units und Include Dateien).

LCL-Schnittstelle

This is the used LCL widget set. Normally the default widget set is used. If you want to try another or you are cross compiling, set here another widget set.

  • The default widget set of a package is the widget set of the current project.
  • The default widget set of the current project depends on the current operating system. For example: win32 for windows 2000.
  • You should not set the widget set for a package, because then the project can not override it. Only set it, if the package is part of a set of packages - one for each widget set.

Parse

Siehe Free Pascal - Onlinedokumentation

Stil

  • -R<x> assembler reading style:
  • -Rdefault use default assembler
  • -Ratt read AT&T style assembler
  • -Rintel read Intel style assembler

Syntaxeinstellungen

  • Delphi 2 Erweiterungen
  • C-artige Operatoren (*=, +=, /= und -=)
  • Assertionen verwenden
  • LABEL und GOTO zulassen
  • C++-artige Inlineanweisungen
  • C-artige Makros (global)
  • TP/BP 7.0 kompatibel
  • Name des Konstruktors muß 'init' sein (Destruktor muß 'done' heißen)
  • 'static'-Schlüsselwort in Objekten
  • Delphi-kompatibel
  • Ansi-Strings verwenden
  • Kompatibel zu GPC (GNU Pascal Compiler)

Quelltext

Siehe Free Pascal - Onlinedokumentation

Linken

Siehe Free Pascal - Onlinedokumentation

Nachrichten...

Siehe Free Pascal - Onlinedokumentation

Andere

Siehe Free Pascal - Onlinedokumentation

Übernehmen

This page shows all the compiler options inherited from packages. Packages inherit options via their 'usage' options.

The topmost node shows all inherited options, that is the sum of all used packages.

The nodes below show the inherited options of each use package.

Übersetzen

Create Makefile

Enable this, if the IDE should create a Makefile and a Makefile.fpc before each build. This is currently only supported for packages, not for projects.

Vorher ausführen

Richten sie hier ein Kommando ein, das vor dem Starten des Compilers ausgeführt wird.

Call on:

  • Compile - execute when normally compiling (F9).
  • Build - execute when rebuilding all. This could for example a script to clean up.
  • Run - execute when quick compiling. When running a project, the IDE checks if rebuild is needed. If no rebuild is needed the IDE skips the compile step. Set this option to always execute the command, even if the compile step is skipped.

The IDE can parse and filter the output of the command and stop on errors. Check the boxes for which messages the IDE should watch.

Compiler

Dies ist der Compiler-Pfad, der vom Projekt oder Package verwendet wird. Voreinstellung ist das Makro $(CompPath), welches durch den Compiler Dateinamen in den Umgebungseinstellungen ersetzt wird.

Nachher ausführen

Richten sie hier ein Kommando ein, das nach dem Starten des Compilers ausgeführt wird. Siehe oben 'Vorher ausführen' für Details.